FRONTPANEL: Allow simulation startup to take up to 10 seconds (in 100ms steps)
This commit is contained in:
parent
ab402130b1
commit
df6953bf82
1 changed files with 1 additions and 1 deletions
|
@ -566,7 +566,7 @@ if (1) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
for (i=0; i<5; i++) {
|
for (i=0; i<100; i++) { /* Allow up to 10 seconds waiting for simulator to start up */
|
||||||
p->sock = sim_connect_sock_ex (NULL, hostport, NULL, NULL, SIM_SOCK_OPT_NODELAY | SIM_SOCK_OPT_BLOCKING);
|
p->sock = sim_connect_sock_ex (NULL, hostport, NULL, NULL, SIM_SOCK_OPT_NODELAY | SIM_SOCK_OPT_BLOCKING);
|
||||||
if (p->sock == INVALID_SOCKET)
|
if (p->sock == INVALID_SOCKET)
|
||||||
msleep (100);
|
msleep (100);
|
||||||
|
|
Loading…
Add table
Reference in a new issue