Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
mailgyc-163 committed Jul 9, 2017
1 parent 85f385c commit 30f1933
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@ def add(self, player):
player.seat = i
self.players[i] = player
return True
logger.error('Player[%d] JOIN Table[%d] FULL', player.pid, self.uid)
logger.error('Player[%d] JOIN Table[%d] FULL', player.uid, self.uid)
return False

def remove(self, player):
for i, p in enumerate(self.players):
if p and p.pid == player.pid:
if p and p.uid == player.uid:
self.players[i] = None
else:
logger.error('Player[%d] NOT IN Table[%d]', player.pid, self.uid)
logger.error('Player[%d] NOT IN Table[%d]', player.uid, self.uid)

if all(p is None for p in self.players):
self.state = 3
Expand Down

0 comments on commit 30f1933

Please sign in to comment.