diff --git a/gns3server/handlers/api/controller/notification_handler.py b/gns3server/handlers/api/controller/notification_handler.py index bf41ad20..832b6388 100644 --- a/gns3server/handlers/api/controller/notification_handler.py +++ b/gns3server/handlers/api/controller/notification_handler.py @@ -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