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:
Radu Caragea 2012-06-04 09:32:37 +02:00 committed by Michal Privoznik
parent a7de052369
commit 107f51b69c
2 changed files with 2 additions and 1 deletions

View File

@ -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....]

View File

@ -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"));