Browse Source

relates to #446 fixed typo in multithreading code.

FlorianPalm 9 years ago
parent
commit
34df09c6da
1 changed files with 1 additions and 1 deletions
  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) {