From c334824199fcddde9f5a712a08a54db798965890 Mon Sep 17 00:00:00 2001 From: Alexander Harkness Date: Fri, 8 Sep 2017 08:36:23 +0100 Subject: Shutdown connection when disconnect packet sent (#3999) --- src/ClientHandle.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/ClientHandle.h') diff --git a/src/ClientHandle.h b/src/ClientHandle.h index b1acede77..630994c2e 100644 --- a/src/ClientHandle.h +++ b/src/ClientHandle.h @@ -491,11 +491,10 @@ private: csDownloadingWorld, ///< The client is waiting for chunks, we're waiting for the loader to provide and send them csConfirmingPos, ///< The client has been sent the position packet, waiting for them to repeat the position back csPlaying, ///< Normal gameplay + csKicked, ///< Disconnect packet sent, awaiting connection closure csQueuedForDestruction, ///< The client will be destroyed in the next tick (flag set when socket closed) csDestroying, ///< The client is being destroyed, don't queue any more packets / don't add to chunks csDestroyed, ///< The client has been destroyed, the destructor is to be called from the owner thread - - // TODO: Add Kicking here as well } ; /* Mutex protecting m_State from concurrent writes. */ @@ -595,8 +594,3 @@ private: virtual void OnRemoteClosed(void) override; virtual void OnError(int a_ErrorCode, const AString & a_ErrorMsg) override; }; // tolua_export - - - - - -- cgit v1.2.3