瀏覽代碼

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);
 }
 
 /*