SOCKET_process_end: exit immediately if there are no active sockets.

git-svn-id: svn://kolibrios.org@4056 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2013-10-20 11:50:49 +00:00
parent d870125d48
commit fe0a297192

View File

@ -2211,6 +2211,11 @@ SOCKET_check_owner:
align 4 align 4
SOCKET_process_end: SOCKET_process_end:
cmp [net_sockets + SOCKET.NextPtr], 0 ; Are there any active sockets at all?
je .quickret ; nope, exit immediately
; TODO: run the following code in another thread, to avoid deadlock
DEBUGF DEBUG_NETWORK_VERBOSE, "SOCKET_process_end: %x\n", edx DEBUGF DEBUG_NETWORK_VERBOSE, "SOCKET_process_end: %x\n", edx
pusha pusha
@ -2261,6 +2266,7 @@ SOCKET_process_end:
call mutex_unlock call mutex_unlock
popa popa
.quickret:
ret ret