diff -r 3ead66c44f3f -r dd1c7ed6d880 RefactoringRope/JsonServer.py --- a/RefactoringRope/JsonServer.py Sun Nov 11 19:43:10 2018 +0100 +++ b/RefactoringRope/JsonServer.py Sun Nov 11 19:43:56 2018 +0100 @@ -11,7 +11,8 @@ import json -from PyQt5.QtCore import pyqtSlot, QProcess, QProcessEnvironment +from PyQt5.QtCore import pyqtSlot, QProcess, QProcessEnvironment, \ + QCoreApplication from PyQt5.QtNetwork import QTcpServer, QHostAddress from E5Gui import E5MessageBox @@ -73,7 +74,7 @@ return if self.__multiplex: - if not connection.waitForReadyRead(3000): + if not connection.waitForReadyRead(1000): return idString = bytes(connection.readLine()).decode( "utf-8", 'backslashreplace').strip() @@ -241,6 +242,9 @@ if idString: self.__clientProcesses[idString] = proc + # wait until the client has connected (= slow start) + while not idString in self.__connections: + QCoreApplication.processEvents() else: self.__clientProcess = proc