Properly remove listener when listen() times out

This commit is contained in:
Martin Willi
2011-08-31 16:50:06 +02:00
parent e59a50009c
commit d0e1b237be
+1
View File
@@ -182,6 +182,7 @@ METHOD(bus_t, listen_, bool,
if (data.entry->condvar->timed_wait_abs(data.entry->condvar,
this->mutex, tv))
{
this->listeners->remove(this->listeners, data.entry, NULL);
timed_out = TRUE;
break;
}