Force port to be an integer
This commit is contained in:
parent
6a73a57bc3
commit
128552180e
2 changed files with 9 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue