Check connections is not None

This commit is contained in:
messense 2017-03-15 17:43:47 +08:00
parent 466b34735c
commit a90d70feae
No known key found for this signature in database
GPG Key ID: BB41A8A2C716CCA9

View File

@ -349,7 +349,7 @@ def serve(host, port, request_handler, error_handler, before_start=None,
trigger_events(before_start, loop) trigger_events(before_start, loop)
connections = connections or set() connections = connections if connections is not None else set()
signal = Signal() signal = Signal()
server = partial( server = partial(
protocol, protocol,