浏览代码

fix missing close(connection)

StalderT 7 年之前
父节点
当前提交
46dc5d959c
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;
     }