Pārlūkot izejas kodu

fix missing close(connection)

StalderT 7 gadi atpakaļ
vecāks
revīzija
46dc5d959c
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      plugins/ua_network_tcp.c

+ 1 - 0
plugins/ua_network_tcp.c

@@ -199,6 +199,7 @@ connection_recv(UA_Connection *connection, UA_ByteString *response,
     /* The remote side closed the connection */
     if(ret == 0) {
         UA_ByteString_deleteMembers(response);
+        connection->close(connection);
         return UA_STATUSCODE_BADCONNECTIONCLOSED;
     }