mirror of
https://github.com/GNS3/gns3-server
synced 2025-03-12 15:06:06 +00:00
Merge 8d7e7f8aea
into 185cd01e19
This commit is contained in:
commit
8e406b5b3e
@ -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…
Reference in New Issue
Block a user