mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
BUGZ-1276 - crash in soloNodeOfType
This is suspected to be a race condition during shutdown where a static destructor may be called before the ScriptEngine thread stops running. On OSX there is the possability of this.
This commit is contained in:
parent
83ef260941
commit
b4679aa44a
1 changed files with 5 additions and 1 deletions
|
@ -37,7 +37,11 @@ OctreeEditPacketSender::~OctreeEditPacketSender() {
|
|||
|
||||
|
||||
bool OctreeEditPacketSender::serversExist() const {
|
||||
auto node = DependencyManager::get<NodeList>()->soloNodeOfType(getMyNodeType());
|
||||
auto nodeList = DependencyManager::get<NodeList>();
|
||||
if(!nodeList) {
|
||||
return false;
|
||||
}
|
||||
auto node = nodeList->soloNodeOfType(getMyNodeType());
|
||||
return node && node->getActiveSocket();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue