Browse Source

postSpawnComplete listener cleanup

AzaezelX 1 month ago
parent
commit
229cc9709e

+ 1 - 0
Templates/BaseGame/game/core/clientServer/scripts/server/connectionToClient.tscript

@@ -291,6 +291,7 @@ function GameConnectionListener::onPostSpawnComplete(%this, %client)
     if (%client.moduleLoadedDone < %client.numModsNeedingLoaded)
         return; //continue to wait 
         
+   %client.GetEventManager().remove( %client.listener, "postSpawnComplete" );
     //Continue on. Room for special handling here if needbe but not expressly required
 }