Force port to be an integer

This commit is contained in:
Roy Hyunjin Han 2012-04-14 13:03:04 -04:00
commit 128552180e
2 changed files with 9 additions and 1 deletions

View file

@ -8,7 +8,7 @@ class SocketIO(object):
def __init__(self, host, port):
self.host = host
self.port = port
self.port = int(port)
self.__do_handshake()
self.__connect()
self.heartbeatThread = RhythmicThread(self.heartbeatTimeout - 2, self.__send_heartbeat)