pull/2358/merge
John Fleming 3 weeks ago committed by GitHub
commit 91c509b1e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -82,6 +82,12 @@ class NotificationHandler:
log.info("Client has disconnected from controller WebSocket")
if not ws.closed:
await ws.close()
try:
# FIXME - This shouldn't be needed. Maybe need bug opened with aiohttp?
# call close to force close ws transport. Unknown root cause as of yet.
ws._req.transport.close()
except:
pass
request.app['websockets'].discard(ws)
return ws

Loading…
Cancel
Save