mirror of
https://github.com/django/daphne.git
synced 2024-11-28 18:53:44 +03:00
Fixed #128: Could not use file descriptor 0
This commit is contained in:
parent
cf7e7f3924
commit
8fd8f794a4
|
@ -215,7 +215,7 @@ def build_endpoint_description_strings(
|
||||||
if unix_socket:
|
if unix_socket:
|
||||||
socket_descriptions.append('unix:%s' % 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))
|
socket_descriptions.append('fd:fileno=%d' % int(file_descriptor))
|
||||||
|
|
||||||
return socket_descriptions
|
return socket_descriptions
|
||||||
|
|
Loading…
Reference in New Issue
Block a user