eric7/EricNetwork/EricJsonServer.py

branch
eric7
changeset 8934
d3798915e0d2
parent 8881
54e42bc2437a
child 8936
dca47d2dde1c
--- a/eric7/EricNetwork/EricJsonServer.py	Thu Jan 27 17:54:11 2022 +0100
+++ b/eric7/EricNetwork/EricJsonServer.py	Sat Jan 29 17:43:20 2022 +0100
@@ -12,7 +12,7 @@
 
 from PyQt6.QtCore import (
     pyqtSlot, QProcess, QProcessEnvironment, QCoreApplication, QEventLoop,
-    QTimer
+    QTimer, QThread
 )
 from PyQt6.QtNetwork import QTcpServer, QHostAddress
 
@@ -255,6 +255,7 @@
                     # connection of the client (= slow start).
                     QCoreApplication.processEvents(
                         QEventLoop.ProcessEventsFlag.ExcludeUserInputEvents)
+                    QThread.msleep(100)
                     
                     # check if client exited prematurely
                     if proc.state() == QProcess.ProcessState.NotRunning:

eric ide

mercurial