mirror of https://gitee.com/openkylin/libvirt.git
Fix sync issue in virNetClientStreamEventRemoveCallback
The stream lock is unlocked twice instead of being locked and then unlocked. Probably a typo.
This commit is contained in:
parent
a7de052369
commit
107f51b69c
1
AUTHORS
1
AUTHORS
|
@ -239,6 +239,7 @@ Patches have also been contributed by:
|
|||
William Jon McCann <william.jon.mccann@gmail.com>
|
||||
David Weber <wb@munzinger.de>
|
||||
Marti Raudsepp <marti@juffo.org>
|
||||
Radu Caragea <dmns_serp@yahoo.com>
|
||||
|
||||
[....send patches to get your name here....]
|
||||
|
||||
|
|
|
@ -508,7 +508,7 @@ int virNetClientStreamEventRemoveCallback(virNetClientStreamPtr st)
|
|||
{
|
||||
int ret = -1;
|
||||
|
||||
virMutexUnlock(&st->lock);
|
||||
virMutexLock(&st->lock);
|
||||
if (!st->cb) {
|
||||
virNetError(VIR_ERR_INTERNAL_ERROR,
|
||||
"%s", _("no stream callback registered"));
|
||||
|
|
Loading…
Reference in New Issue