Skip to content

Commit

Permalink
[ASSERT] If Thunder is to avoid a crash, at least report it using an …
Browse files Browse the repository at this point in the history
…ASSERT!
  • Loading branch information
pwielders committed Nov 22, 2024
1 parent 9b67a12 commit 6243ffb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/websocket/WebSocketLink.h
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,10 @@ PUSH_WARNING(DISABLE_WARNING_THIS_IN_MEMBER_INITIALIZER_LIST)
}
POP_WARNING()
~HandlerType() override {
// If this assert fires, it means the socket was not closed
// by the one who opened it. That is unexpected. The creater
// of this link, should (besides opening it) also close it.
ASSERT(ACTUALLINK::IsClosed() == true);
ACTUALLINK::Close(Core::infinite);
}

Expand Down

0 comments on commit 6243ffb

Please sign in to comment.