forked from qt-creator/qt-creator
WinRT: Fix Timing issue on debugger start up.
In some rare cases the helper finished before the locale server was listening. Change-Id: Ic3677ef0e58e1a5ed324124111b41ddfaa25484a Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
@@ -97,14 +97,15 @@ RunControl *WinRtDebugSupport::createDebugRunControl(WinRtRunConfiguration *runC
|
||||
if (!errorMessage->isEmpty())
|
||||
return 0;
|
||||
|
||||
QLocalServer server;
|
||||
server.listen(QLatin1String("QtCreatorWinRtDebugPIDPipe"));
|
||||
|
||||
runner->debug(debuggerHelper.absoluteFilePath());
|
||||
if (!runner->waitForStarted()) {
|
||||
*errorMessage = tr("Cannot start the WinRT Runner Tool.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
QLocalServer server;
|
||||
server.listen(QLatin1String("QtCreatorWinRtDebugPIDPipe"));
|
||||
if (!server.waitForNewConnection(10000)) {
|
||||
*errorMessage = tr("Cannot establish connection to the WinRT debugging helper.");
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user