272 timer.start(1000) # 1s timeout |
272 timer.start(1000) # 1s timeout |
273 while timer.isActive(): |
273 while timer.isActive(): |
274 # check if client exited prematurely |
274 # check if client exited prematurely |
275 QCoreApplication.processEvents( |
275 QCoreApplication.processEvents( |
276 QEventLoop.ProcessEventsFlag.ExcludeUserInputEvents) |
276 QEventLoop.ProcessEventsFlag.ExcludeUserInputEvents) |
|
277 QThread.msleep(100) |
277 if proc.state() == QProcess.ProcessState.NotRunning: |
278 if proc.state() == QProcess.ProcessState.NotRunning: |
278 exitCode = proc.exitCode() |
279 exitCode = proc.exitCode() |
279 proc = None |
280 proc = None |
280 break |
281 break |
281 self.__clientProcess = proc |
282 self.__clientProcess = proc |