diff --git a/Source/websocket/WebSocketLink.h b/Source/websocket/WebSocketLink.h index 98e3d2dac..9b5e38d69 100644 --- a/Source/websocket/WebSocketLink.h +++ b/Source/websocket/WebSocketLink.h @@ -408,7 +408,9 @@ PUSH_WARNING(DISABLE_WARNING_THIS_IN_MEMBER_INITIALIZER_LIST) { } POP_WARNING() - ~HandlerType() override = default; + ~HandlerType() override { + ACTUALLINK::Close(Core::infinite); + } public: bool IsOpen() const