Miracle mods
[melted] / src / valerie / valerie_notifier.c
index 5e374a8..9c44650 100644 (file)
@@ -93,7 +93,9 @@ int valerie_notifier_wait( valerie_notifier this, valerie_status status )
        }
        else
        {
-               error = -1;
+               pthread_mutex_lock( &this->mutex );
+               valerie_status_copy( status, &this->last );
+               pthread_mutex_unlock( &this->mutex );
        }
        pthread_mutex_unlock( &this->cond_mutex );