Browse Source

Fixed usrsctp cleanup not triggered

Paul-Louis Ageneau 5 years ago
parent
commit
dc7a59503a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/sctptransport.cpp

+ 1 - 1
src/sctptransport.cpp

@@ -42,7 +42,7 @@ void SctpTransport::GlobalInit() {
 
 void SctpTransport::GlobalCleanup() {
 	std::unique_lock<std::mutex> lock(GlobalMutex);
-	if (InstancesCount-- == 0) {
+	if (--InstancesCount == 0) {
 		usrsctp_finish();
 	}
 }