2
0
Эх сурвалжийг харах

Fixed usrsctp cleanup not triggered

Paul-Louis Ageneau 6 жил өмнө
parent
commit
dc7a59503a
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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();
 	}
 }