Просмотр исходного кода

relates to #446 fixed typo in multithreading code.

FlorianPalm лет назад: 9
Родитель
Сommit
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) {