mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Always use the passed logger (from Messenger) in msi_kill.
This commit is contained in:
parent
93cc178cfe
commit
33c2f5138f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user