mirror of
https://github.com/webui-dev/webui.git
synced 2024-09-17 17:27:54 +03:00
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:
parent
cdfed3d7a2
commit
eda58b315e
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user