From 8fd8f794a45ee9422090a0877a09d7822025ee6e Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Mon, 24 Jul 2017 10:41:54 -0700 Subject: [PATCH] Fixed #128: Could not use file descriptor 0 --- daphne/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daphne/server.py b/daphne/server.py index 20b19cb..9340524 100755 --- a/daphne/server.py +++ b/daphne/server.py @@ -215,7 +215,7 @@ def build_endpoint_description_strings( if unix_socket: socket_descriptions.append('unix:%s' % unix_socket) - if file_descriptor: + if file_descriptor is not None: socket_descriptions.append('fd:fileno=%d' % int(file_descriptor)) return socket_descriptions