Skip to content

Commit

Permalink
Fixed possible deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
Laky-64 committed Apr 8, 2024
1 parent 5946d85 commit 750ef33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ntgcalls/ntgcalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ namespace ntgcalls {
}

NTgCalls::~NTgCalls() {
#ifdef PYTHON_ENABLED
py::gil_scoped_release release;
#endif
RTC_LOG(LS_VERBOSE) << "Destroying NTgCalls";
std::lock_guard lock(mutex);
connections = {};
hardwareInfo.reset();
workerThread->Stop();
Expand Down

0 comments on commit 750ef33

Please sign in to comment.