change test

This commit is contained in:
raurodse 2017-03-24 11:58:15 +01:00
parent 9701e336fa
commit 62e25f7201

View File

@ -385,7 +385,7 @@ class HTTPFactory(http.HTTPFactory):
# WebSocket timeout checking and keepalive ping sending
elif isinstance(protocol, WebSocketProtocol):
# Timeout check
if protocol.duration() > self.websocket_timeout and self.websocket_timeout > -1:
if protocol.duration() > self.websocket_timeout and self.websocket_timeout >= 0:
protocol.serverClose()
# Ping check
else: