mana nng server: close the socket when the plugin is deleted

This commit is contained in:
Florian Lüke 2024-12-29 21:43:07 +01:00
parent b0c6cddea6
commit 0d862f401c

View file

@ -14,13 +14,11 @@ class Plugin: public IManaPlugin
~Plugin() override ~Plugin() override
{ {
#if 0
if (nng_socket_id(socket_) >= 0) if (nng_socket_id(socket_) >= 0)
{ {
nng_close(socket_); nng_close(socket_);
socket_ = NNG_SOCKET_INITIALIZER; socket_ = NNG_SOCKET_INITIALIZER;
} }
#endif
} }
std::unique_ptr<IManaSink> makeSink() override std::unique_ptr<IManaSink> makeSink() override