summaryrefslogtreecommitdiff
path: root/indra/newview/llscripteditorws.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llscripteditorws.cpp')
-rw-r--r--indra/newview/llscripteditorws.cpp7
1 files changed, 7 insertions, 0 deletions
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<LLScriptEditorWSServer>(
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<U16>(gSavedSettings.getS32("ExternalWebsocketSyncPort"));