mirror of
https://github.com/emqx/neuron.git
synced 2026-10-27 04:19:50 +08:00
Merge pull request #831 from fengzeroz/main
fix: still a message after the plugin close
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user