gattlib: Fix disconnection handler type check

pull/117/head
Michael Rolland 2019-07-11 11:40:50 -04:00 committed by Olivier Martin
parent 0142c33dd8
commit 4b9252bad1
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ void gattlib_call_notification_handler(struct gattlib_handler *handler, const uu
}
void gattlib_call_disconnection_handler(struct gattlib_handler *handler) {
if (handler->type == NATIVE_NOTIFICATION) {
if (handler->type == NATIVE_DISCONNECTION) {
handler->disconnection_handler(handler->user_data);
}
#if defined(WITH_PYTHON)