Browse Source

Suppress accept_connection2 messages

master
Neil Booth 8 years ago
parent
commit
a42aa1f49e
  1. 5
      electrumx_server.py

5
electrumx_server.py

@ -38,9 +38,12 @@ def main_loop():
future.cancel()
def on_exception(loop, context):
'''Suppress spurious messages it appears we cannot control.'''
message = context.get('message')
if not message in SUPPRESS_MESSAGES:
loop.default_exception_handler(context)
if not ('task' in context and
'accept_connection2()' in repr(context.get('task'))):
loop.default_exception_handler(context)
server = BlockServer(Env())
future = asyncio.ensure_future(server.main_loop())

Loading…
Cancel
Save