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:
Radu Caragea 2012-06-04 09:32:37 +02:00 committed by Cole Robinson
parent 5b3c356015
commit 25a35c9ce5
2 changed files with 2 additions and 1 deletions

View File

@ -233,6 +233,7 @@ Patches have also been contributed by:
MATSUDA Daiki <matsudadik@intellilink.co.jp>
Jan Kiszka <jan.kiszka@siemens.com>
Ryan Woodsmall <rwoodsmall@gmail.com>
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"));