From de4e29288d30183ca78a5e0878431ed47fa58b8f Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 21 Aug 2014 17:49:05 -0700 Subject: Fix for crazy Windows threading bug... repeatedly adding and removing a network now doesn't leave networks in limbo. --- node/NodeConfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node/NodeConfig.cpp') diff --git a/node/NodeConfig.cpp b/node/NodeConfig.cpp index 3b5ce2f6..732d41a3 100644 --- a/node/NodeConfig.cpp +++ b/node/NodeConfig.cpp @@ -286,7 +286,7 @@ void NodeConfig::_doCommand(IpcConnection *ipcc,const char *commandLine) if (nw == _networks.end()) { ipcc->printf("404 leave %.16llx ERROR: not a member of that network"ZT_EOL_S,(unsigned long long)nwid); } else { - nw->second->destroyOnDelete(); + nw->second->destroy(); _networks.erase(nw); } } else { -- cgit v1.2.3