eric7/Utilities/BackgroundService.py

branch
eric7
changeset 8943
23f9c7b9e18e
parent 8881
54e42bc2437a
child 9016
6f079c524e99
--- 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)

eric ide

mercurial