fix: still a message after the plugin close

This commit is contained in:
fengzero
2022-10-12 03:07:02 +00:00
parent 74690d8ee8
commit 046ece6035
+3 -2
View File
@@ -693,10 +693,11 @@ static int adapter_loop(enum neu_event_io_type type, int fd, void *usr_data)
void neu_adapter_destroy(neu_adapter_t *adapter)
{
adapter->module->intf_funs->close(adapter->plugin);
nng_dialer_close(adapter->dialer);
nng_close(adapter->sock);
adapter->module->intf_funs->close(adapter->plugin);
neu_persister_destroy(adapter->persister);
if (adapter->name != NULL) {