summaryrefslogtreecommitdiff
path: root/toxav
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-09-08 22:47:32 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-09-08 22:47:32 +0000
commit33c2f5138f3b2e20b97d0fe8405aadb32dedf403 (patch)
tree6da493fc2be355fde12f46deaaf38263a77072a2 /toxav
parent93cc178cfedb281ad05f988850d601e600361d9a (diff)
Always use the passed logger (from Messenger) in msi_kill.
Diffstat (limited to 'toxav')
-rw-r--r--toxav/msi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxav/msi.c b/toxav/msi.c
index 42f5fc58..244225fa 100644
--- a/toxav/msi.c
+++ b/toxav/msi.c
@@ -145,7 +145,7 @@ int msi_kill(MSISession *session, const Logger *log)
145 m_callback_msi_packet(session->messenger, nullptr, nullptr); 145 m_callback_msi_packet(session->messenger, nullptr, nullptr);
146 146
147 if (pthread_mutex_trylock(session->mutex) != 0) { 147 if (pthread_mutex_trylock(session->mutex) != 0) {
148 LOGGER_ERROR(session->messenger->log, "Failed to acquire lock on msi mutex"); 148 LOGGER_ERROR(log, "Failed to acquire lock on msi mutex");
149 return -1; 149 return -1;
150 } 150 }
151 151
@@ -166,7 +166,7 @@ int msi_kill(MSISession *session, const Logger *log)
166 pthread_mutex_unlock(session->mutex); 166 pthread_mutex_unlock(session->mutex);
167 pthread_mutex_destroy(session->mutex); 167 pthread_mutex_destroy(session->mutex);
168 168
169 LOGGER_DEBUG(session->messenger->log, "Terminated session: %p", (void *)session); 169 LOGGER_DEBUG(log, "Terminated session: %p", (void *)session);
170 free(session); 170 free(session);
171 return 0; 171 return 0;
172} 172}