docky.asm: fix timeout for connect to @reshare

git-svn-id: svn://kolibrios.org@9877 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Doczom 2022-09-18 16:49:54 +00:00
parent e3e9fce8d8
commit 669c8fa38a

View File

@ -632,17 +632,16 @@ endp
;------------------------------------------------------------------------------- ;-------------------------------------------------------------------------------
LOAD_ICONS: LOAD_ICONS:
mov esi, 0 ; esi is a counter of mem_open attempts mov esi, 0 ; esi is a counter of mem_open attempts
mov edi, esi
@@: @@:
; try to open shr memory, if failed then make 5 attempts more ; try to open shr memory, if failed then make 5 attempts more
mcall SF_SYS_MISC, SSF_MEM_OPEN,icons_resname ; 0 = SHM_READ mcall SF_SYS_MISC, SSF_MEM_OPEN,icons_resname ; 0 = SHM_READ
cmp edx, 5
jz error_exit
cmp eax,0 cmp eax,0
jne @f jne @f
inc esi inc edi
cmp esi,10 cmp edi,10
je exit je error_exit
mcall SF_SLEEP, 70 mcall SF_SLEEP, 70
jmp @b jmp @b
@@: @@: