فهرست منبع

dialog: fix for rpc list dialogs release of the profile locks

- reported by GH #1032
Daniel-Constantin Mierla 8 سال پیش
والد
کامیت
c986a82004
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/modules/dialog/dialog.c

+ 1 - 1
src/modules/dialog/dialog.c

@@ -1616,8 +1616,8 @@ static void internal_rpc_profile_print_dlgs(rpc_t *rpc, void *c, str *profile_na
 				ph=ph->next;
 			}while(ph!=profile->entries[i].first);
 		}
-		lock_release(&profile->lock);
 	}
+	lock_release(&profile->lock);
 }
 
 /*