소스 검색

relates to #446 fixed typo in multithreading code.

FlorianPalm 9 년 전
부모
커밋
34df09c6da
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/server/ua_securechannel_manager.c

+ 1 - 1
src/server/ua_securechannel_manager.c

@@ -39,7 +39,7 @@ void UA_SecureChannelManager_cleanupTimedOut(UA_SecureChannelManager *cm,
 #ifndef UA_MULTITHREADING
 			cm->currentChannelCount--;
 #else
-			cm->currentChannelCount = uatomic_add_return(&cm->currentChannelCount, --1);
+			cm->currentChannelCount = uatomic_add_return(&cm->currentChannelCount, -1);
 #endif
 			UA_free(entry);
 		} else if (entry->channel.nextSecurityToken.tokenId > 0) {