Fixed #1231 - release resource no matter what (#1232)

This commit is contained in:
Philip Xu 2018-06-06 17:43:57 -04:00 committed by Raphael Deem
parent 202a4c6525
commit 2f30f4f69f

View File

@ -303,6 +303,7 @@ class Sanic:
await fut
except (CancelledError, ConnectionClosed):
pass
finally:
self.websocket_tasks.remove(fut)
await ws.close()