Force exit on pusher response timeout

This commit is contained in:
Fabio Manganiello 2017-12-18 22:58:31 +01:00
parent 8ea943ffe1
commit 84e36a13e9

View file

@ -17,6 +17,7 @@ def pusher(target, action, backend=None, config=None,
def on_timeout(signum, frame): def on_timeout(signum, frame):
raise RuntimeError('Response timed out after {} seconds'.format( raise RuntimeError('Response timed out after {} seconds'.format(
timeout)) timeout))
os._exit(0)
Config.init(config) Config.init(config)