--- a/eric7/Utilities/BackgroundService.py Mon Feb 07 22:02:35 2022 +0100 +++ b/eric7/Utilities/BackgroundService.py Tue Feb 08 16:21:09 2022 +0100 @@ -8,14 +8,14 @@ Python interpreter dependent functions. """ +import contextlib import json import os import struct import sys from zlib import adler32 -import contextlib -from PyQt6.QtCore import QProcess, pyqtSignal, QTimer +from PyQt6.QtCore import QProcess, pyqtSignal, QTimer, QThread from PyQt6.QtWidgets import QApplication from PyQt6.QtNetwork import QTcpServer, QHostAddress @@ -297,6 +297,7 @@ # Don't kill a process if it's still working if not forceKill: while self.isWorking is not None: + QThread.msleep(100) QApplication.processEvents() conn = self.connections.pop(language, None)