From fe3924b288d5dadbda04222cbbe459cc7450967f Mon Sep 17 00:00:00 2001 From: Doczom Date: Fri, 15 Mar 2024 12:11:28 +0000 Subject: [PATCH] fixed bad commit(rev9976) of Jergen git-svn-id: svn://kolibrios.org@9993 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/network/socket.inc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/kernel/trunk/network/socket.inc b/kernel/trunk/network/socket.inc index 840bc5b434..69ea584d7e 100644 --- a/kernel/trunk/network/socket.inc +++ b/kernel/trunk/network/socket.inc @@ -759,12 +759,14 @@ socket_close: cmp [eax + SOCKET.Protocol], IP_PROTO_TCP jne .free test [eax + SOCKET.state], SS_ISCONNECTED - jz .free + jz @f test [eax + SOCKET.state], SS_ISDISCONNECTING - jnz .free + jnz @f call tcp_disconnect - test eax, eax - jz .end +@@: + ret +; test eax, eax +; jz .end .free: call socket_free .end: