Reduce message spew on clean shutdown
This commit is contained in:
parent
625508f5c6
commit
e59279cc08
@ -41,7 +41,7 @@ def main_loop():
|
||||
def on_exception(loop, context):
|
||||
'''Suppress spurious messages it appears we cannot control.'''
|
||||
message = context.get('message')
|
||||
if not message in SUPPRESS_MESSAGES:
|
||||
if not loop.is_closed() and not message in SUPPRESS_MESSAGES:
|
||||
if not ('task' in context and
|
||||
'accept_connection2()' in repr(context.get('task'))):
|
||||
loop.default_exception_handler(context)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user