提交 107f51b6 编写于 作者: R Radu Caragea 提交者: Michal Privoznik

Fix sync issue in virNetClientStreamEventRemoveCallback

The stream lock is unlocked twice instead of being locked and then
unlocked. Probably a typo.
上级 a7de0523
...@@ -239,6 +239,7 @@ Patches have also been contributed by: ...@@ -239,6 +239,7 @@ Patches have also been contributed by:
William Jon McCann <william.jon.mccann@gmail.com> William Jon McCann <william.jon.mccann@gmail.com>
David Weber <wb@munzinger.de> David Weber <wb@munzinger.de>
Marti Raudsepp <marti@juffo.org> Marti Raudsepp <marti@juffo.org>
Radu Caragea <dmns_serp@yahoo.com>
[....send patches to get your name here....] [....send patches to get your name here....]
......
...@@ -508,7 +508,7 @@ int virNetClientStreamEventRemoveCallback(virNetClientStreamPtr st) ...@@ -508,7 +508,7 @@ int virNetClientStreamEventRemoveCallback(virNetClientStreamPtr st)
{ {
int ret = -1; int ret = -1;
virMutexUnlock(&st->lock); virMutexLock(&st->lock);
if (!st->cb) { if (!st->cb) {
virNetError(VIR_ERR_INTERNAL_ERROR, virNetError(VIR_ERR_INTERNAL_ERROR,
"%s", _("no stream callback registered")); "%s", _("no stream callback registered"));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册