diff --git a/Source/websocket/WebSocketLink.h b/Source/websocket/WebSocketLink.h index c1f3f14ad..9cd66ee44 100644 --- a/Source/websocket/WebSocketLink.h +++ b/Source/websocket/WebSocketLink.h @@ -402,7 +402,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