Skip to content
Permalink
Browse files

Don't queue a resource restart if resource is stopping (#960)

  • Loading branch information
StrixG committed Mar 23, 2020
1 parent f215edb commit 24296839ff1ab9a1e84a146072819b2eaebabec1
Showing with 1 addition and 1 deletion.
  1. +1 −1 Server/mods/deathmatch/logic/luadefs/CLuaResourceDefs.cpp
@@ -609,7 +609,7 @@ int CLuaResourceDefs::restartResource(lua_State* luaVM)
return 1;
}

if (pResource->IsActive())
if (pResource->IsActive() && !pResource->IsStopping())
{
m_pResourceManager->QueueResource(pResource, CResourceManager::QUEUE_RESTART, &StartOptions);
lua_pushboolean(luaVM, true);

0 comments on commit 2429683

Please sign in to comment.
You can’t perform that action at this time.