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

8
.gitignore vendored Normal file
View file

@ -0,0 +1,8 @@
*~
*.egg-info
*.pyc
*.swo
*.swp
.coverage
build
dist

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)