diff --git a/server/src/client/voice/VoiceClient.cpp b/server/src/client/voice/VoiceClient.cpp index db74d5b..bbe6647 100644 --- a/server/src/client/voice/VoiceClient.cpp +++ b/server/src/client/voice/VoiceClient.cpp @@ -189,7 +189,7 @@ bool VoiceClient::close_connection(const system_clock::time_point &timeout) { debugMessage(this->getServerId(), "{} Closing voice client connection. (Flush: {})", CLIENT_STR_LOG_PREFIX, flush); //TODO: Move this out into a thread pool? - if(this->flushing_thread->joinable()) { + if(this->flushing_thread && this->flushing_thread->joinable()) { logCritical(LOG_GENERAL, "VoiceClient::close_connection reached flushing thread with an active old handle. Ignoring request."); return true; }