1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-03-12 15:06:06 +00:00
This commit is contained in:
John Fleming 2025-01-22 22:44:26 +00:00 committed by GitHub
commit 8e406b5b3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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