mirror of
https://github.com/django/daphne.git
synced 2024-11-21 23:46:33 +03:00
Fixed #206: Check applications exist before timing them out
This commit is contained in:
parent
c4360fd70a
commit
fa3c764433
|
@ -210,7 +210,7 @@ class Server(object):
|
|||
# First, see if the protocol disconnected and the app has taken
|
||||
# too long to close up
|
||||
if disconnected and time.time() - disconnected > self.application_close_timeout:
|
||||
if not application_instance.done():
|
||||
if application_instance and not application_instance.done():
|
||||
logger.warning(
|
||||
"Application instance %r for connection %s took too long to shut down and was killed.",
|
||||
application_instance,
|
||||
|
|
Loading…
Reference in New Issue
Block a user