This commit is contained in:
liris
2014-04-08 10:24:59 +09:00
parent 409482b93e
commit bda0b9874a

View File

@@ -927,7 +927,7 @@ class WebSocketApp(object):
if set to 0, not send automatically. if set to 0, not send automatically.
ping_timeout: timeout(second) if the pong message is not recieved. ping_timeout: timeout(second) if the pong message is not recieved.
""" """
if ping_timeout<=0: if not ping_timeout or ping_timeout<=0:
ping_timeout = None ping_timeout = None
if sockopt is None: if sockopt is None:
sockopt = [] sockopt = []