ソースを参照

Fixed usrsctp cleanup not triggered

Paul-Louis Ageneau 6 年 前
コミット
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();
 	}
 }