Bläddra i källkod

relates to #446 fixed typo in multithreading code.

FlorianPalm 9 år sedan
förälder
incheckning
34df09c6da
1 ändrade filer med 1 tillägg och 1 borttagningar
  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
 #ifndef UA_MULTITHREADING
 			cm->currentChannelCount--;
 			cm->currentChannelCount--;
 #else
 #else
-			cm->currentChannelCount = uatomic_add_return(&cm->currentChannelCount, --1);
+			cm->currentChannelCount = uatomic_add_return(&cm->currentChannelCount, -1);
 #endif
 #endif
 			UA_free(entry);
 			UA_free(entry);
 		} else if (entry->channel.nextSecurityToken.tokenId > 0) {
 		} else if (entry->channel.nextSecurityToken.tokenId > 0) {