Always use the passed logger (from Messenger) in msi_kill.

This commit is contained in:
iphydf 2018-09-08 22:47:32 +00:00
parent 93cc178cfe
commit 33c2f5138f
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

@ -145,7 +145,7 @@ int msi_kill(MSISession *session, const Logger *log)
m_callback_msi_packet(session->messenger, nullptr, nullptr);
if (pthread_mutex_trylock(session->mutex) != 0) {
LOGGER_ERROR(session->messenger->log, "Failed to acquire lock on msi mutex");
LOGGER_ERROR(log, "Failed to acquire lock on msi mutex");
return -1;
}
@ -166,7 +166,7 @@ int msi_kill(MSISession *session, const Logger *log)
pthread_mutex_unlock(session->mutex);
pthread_mutex_destroy(session->mutex);
LOGGER_DEBUG(session->messenger->log, "Terminated session: %p", (void *)session);
LOGGER_DEBUG(log, "Terminated session: %p", (void *)session);
free(session);
return 0;
}