From a90d70feae59f702e56e771cf84d12a6ee75beed Mon Sep 17 00:00:00 2001 From: messense Date: Wed, 15 Mar 2017 17:43:47 +0800 Subject: [PATCH] Check connections is not None --- sanic/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanic/server.py b/sanic/server.py index ee45e81b..f044517e 100644 --- a/sanic/server.py +++ b/sanic/server.py @@ -349,7 +349,7 @@ def serve(host, port, request_handler, error_handler, before_start=None, trigger_events(before_start, loop) - connections = connections or set() + connections = connections if connections is not None else set() signal = Signal() server = partial( protocol,