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:
parent
7f08842864
commit
a1c343b97d
1 changed files with 12 additions and 4 deletions
|
|
@ -106,10 +106,18 @@ public:
|
|||
server = createClangServer (command);
|
||||
#endif
|
||||
|
||||
if (connectToPipe (pipeName, 10000))
|
||||
MessageTypes::sendPing (*this);
|
||||
else
|
||||
jassertfalse;
|
||||
for (int i = 0; i < 20; ++i)
|
||||
{
|
||||
if (connectToPipe (pipeName, 10000))
|
||||
{
|
||||
MessageTypes::sendPing (*this);
|
||||
break;
|
||||
}
|
||||
|
||||
Thread::sleep (50);
|
||||
}
|
||||
|
||||
jassert (isConnected());
|
||||
|
||||
startTimer (serverKeepAliveTimeout);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue