Wait longer for WS

* When running the browser for the first time after a fresh PC start, it take time to run and connect. So increasing WS timeout from `1.5s` to `3s`. While browser running timeout stay `30s`.
This commit is contained in:
Hassan DRAGA 2023-08-24 18:06:41 -04:00
parent cdfed3d7a2
commit eda58b315e

View File

@ -4920,7 +4920,7 @@ static WEBUI_SERVER_START
// At this moment the browser is already started and HTML
// is already handled, so, let's wait more time to give
// the WebSocket an extra one and half second to connect.
// the WebSocket an extra three seconds to connect.
do {
#ifdef WEBUI_LOG
@ -4939,7 +4939,7 @@ static WEBUI_SERVER_START
break;
// Stop if timer is finished
if(_webui_timer_is_end(&timer_2, 1500))
if(_webui_timer_is_end(&timer_2, 3000))
break;
}
}