From 62e25f7201232e1cd47580bed81620e105ed0255 Mon Sep 17 00:00:00 2001 From: raurodse Date: Fri, 24 Mar 2017 11:58:15 +0100 Subject: [PATCH] change test --- daphne/http_protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daphne/http_protocol.py b/daphne/http_protocol.py index c561e25..8ae044c 100755 --- a/daphne/http_protocol.py +++ b/daphne/http_protocol.py @@ -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: