Fix example plugin incorrect callback unregister.
Closes #2673. Thanks to Karl Palsson.
This commit is contained in:
parent
655f9e58b7
commit
4f9c5567ba
@ -106,5 +106,5 @@ int mosquitto_plugin_cleanup(void *user_data, struct mosquitto_opt *opts, int op
|
|||||||
UNUSED(opts);
|
UNUSED(opts);
|
||||||
UNUSED(opt_count);
|
UNUSED(opt_count);
|
||||||
|
|
||||||
return mosquitto_callback_unregister(mosq_pid, MOSQ_EVT_MESSAGE, basic_auth_callback, NULL);
|
return mosquitto_callback_unregister(mosq_pid, MOSQ_EVT_BASIC_AUTH, basic_auth_callback, NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user