mana nng server: close the socket when the plugin is deleted
This commit is contained in:
parent
b0c6cddea6
commit
0d862f401c
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue