NonBlock calls need to finish
This commit is contained in:
+2
-2
@@ -47,10 +47,10 @@ class NonBlockHandler(RequestHandler):
|
|||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.write(response)
|
self.finish(response)
|
||||||
except:
|
except:
|
||||||
log.error('Failed doing nonblock request: %s', (traceback.format_exc()))
|
log.error('Failed doing nonblock request: %s', (traceback.format_exc()))
|
||||||
self.write({'success': False, 'error': 'Failed returning results'})
|
self.finish({'success': False, 'error': 'Failed returning results'})
|
||||||
|
|
||||||
def on_connection_close(self):
|
def on_connection_close(self):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user