From cbfc1b44a72441e8d4eaa33ed097cfca774e64a6 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> Date: Fri, 4 Sep 2026 19:38:56 +0300 Subject: #6258 Fix Slua Editor crash and obsolete state --- indra/newview/llscripteditorws.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'indra/newview/llscripteditorws.cpp') diff --git a/indra/newview/llscripteditorws.cpp b/indra/newview/llscripteditorws.cpp index 72b5b66463..8d24e883e1 100644 --- a/indra/newview/llscripteditorws.cpp +++ b/indra/newview/llscripteditorws.cpp @@ -300,6 +300,13 @@ LLScriptEditorWSServer::ptr_t LLScriptEditorWSServer::ensureServerRunning() ptr_t server = std::static_pointer_cast( wsmgr.findServerByName(DEFAULT_SERVER_NAME)); + if (server && !server->isRunning()) + { + // thread stopped/was joined + wsmgr.removeServer(DEFAULT_SERVER_NAME); + server.reset(); + } + if (!server) { U16 port = static_cast(gSavedSettings.getS32("ExternalWebsocketSyncPort")); -- cgit v1.3