Kaynağa Gözat

cosmetic improvements in client securechannel renewal

Julius Pfrommer 7 yıl önce
ebeveyn
işleme
ef5baa585b
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/client/ua_client_connect.c

+ 1 - 1
src/client/ua_client_connect.c

@@ -133,7 +133,7 @@ processDecodedOPNResponse(UA_Client *client, UA_OpenSecureChannelResponse *respo
 static UA_StatusCode
 openSecureChannel(UA_Client *client, UA_Boolean renew) {
     /* Check if sc is still valid */
-    if(renew && client->nextChannelRenewal - UA_DateTime_nowMonotonic() > 0)
+    if(renew && client->nextChannelRenewal > UA_DateTime_nowMonotonic())
         return UA_STATUSCODE_GOOD;
 
     UA_Connection *conn = &client->connection;