private void stopObserving(GameClient c, string tableId, bool disconnecting) { int tid; try { tid = int.Parse(tableId); } catch (Exception) { c.sendMessage(Message.BAD_MESSAGE); return; } if (tables.ContainsKey(tid)) { GameTable t = tables[tid]; t.removeObserver(c); c.stopObserving(tid); //c.joinLobby(); //if (!disconnecting) // alertJoinLobby(c); } else { c.sendMessage(Message.TBL_NOT_EXIST); } }
private void stopObserving(GameClient c, string tableId, bool disconnecting) { int tid; try { tid = int.Parse(tableId); } catch (Exception) { c.sendMessage(Message.BAD_MESSAGE); return; } if (tables.ContainsKey(tid)) { GameTable t = tables[tid]; t.removeObserver(c); c.stopObserving(tid); //c.joinLobby(); //if (!disconnecting) // alertJoinLobby(c); } else c.sendMessage(Message.TBL_NOT_EXIST); }