Add missing base case for lobby handler
authoralfadur
Thu, 04 Oct 2018 19:57:53 +0300
changeset 13834 346cba4465b9
parent 13831 b07610de9957
child 13835 acb8b5530aa8
Add missing base case for lobby handler
gameServer/HWProtoLobbyState.hs
--- a/gameServer/HWProtoLobbyState.hs	Thu Oct 04 17:55:08 2018 +0200
+++ b/gameServer/HWProtoLobbyState.hs	Thu Oct 04 19:57:53 2018 +0300
@@ -227,3 +227,5 @@
     return [Stats]
 
 handleCmd_lobby (s:_) = return [ProtocolError $ "Incorrect command '" `B.append` s `B.append` "' (state: in lobby)"]
+
+handleCmd_lobby [] = return [ProtocolError "Empty command (state: in lobby)"]
\ No newline at end of file