1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Projucer: Fixed a bug connecting to the build server on startup

This commit is contained in:
Tom Poole 2018-11-10 10:10:26 +00:00
parent 7f08842864
commit a1c343b97d

View file

@ -106,10 +106,18 @@ public:
server = createClangServer (command); server = createClangServer (command);
#endif #endif
if (connectToPipe (pipeName, 10000)) for (int i = 0; i < 20; ++i)
MessageTypes::sendPing (*this); {
else if (connectToPipe (pipeName, 10000))
jassertfalse; {
MessageTypes::sendPing (*this);
break;
}
Thread::sleep (50);
}
jassert (isConnected());
startTimer (serverKeepAliveTimeout); startTimer (serverKeepAliveTimeout);
} }