mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-07 21:45:22 +00:00
Fix sync issue in virNetClientStreamEventRemoveCallback
The stream lock is unlocked twice instead of being locked and then
unlocked. Probably a typo.
(cherry picked from commit 107f51b69c
)
Conflicts:
AUTHORS
This commit is contained in:
parent
5b3c356015
commit
25a35c9ce5
1
AUTHORS
1
AUTHORS
@ -233,6 +233,7 @@ Patches have also been contributed by:
|
|||||||
MATSUDA Daiki <matsudadik@intellilink.co.jp>
|
MATSUDA Daiki <matsudadik@intellilink.co.jp>
|
||||||
Jan Kiszka <jan.kiszka@siemens.com>
|
Jan Kiszka <jan.kiszka@siemens.com>
|
||||||
Ryan Woodsmall <rwoodsmall@gmail.com>
|
Ryan Woodsmall <rwoodsmall@gmail.com>
|
||||||
|
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)
|
|||||||
{
|
{
|
||||||
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"));
|
||||||
|
Loading…
Reference in New Issue
Block a user