FRONTPANEL: Allow simulation startup to take up to 10 seconds (in 100ms steps)

This commit is contained in:
Mark Pizzolato 2015-02-25 14:31:52 -08:00
parent ab402130b1
commit df6953bf82

View file

@ -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);