Set _server_quit in WebServerSimple the way it was intended to be used.

This commit is contained in:
Relintai 2023-02-19 11:41:43 +01:00
parent 4ededb6a34
commit 4551061c17

View File

@ -163,6 +163,7 @@ void WebServerSimple::_start() {
ERR_FAIL_COND_MSG(err != OK, "Error starting HTTP server:\n" + itos(err));
_running = true;
_server_quit = false;
if (!_use_poll_thread || !OS::get_singleton()->can_use_threads()) {
set_process_internal(true);
@ -182,6 +183,7 @@ void WebServerSimple::_stop() {
WebServer::_stop();
_server_lock.lock();
_server_quit = true;
_server->stop();