SystemTimeSource: Exit loop when the port is closed
This commit is contained in:
@@ -84,6 +84,6 @@ SystemTimeSource::ControlThread()
|
|||||||
status_t err;
|
status_t err;
|
||||||
do {
|
do {
|
||||||
err = WaitForMessage(B_INFINITE_TIMEOUT);
|
err = WaitForMessage(B_INFINITE_TIMEOUT);
|
||||||
} while (err == B_OK || err == B_ERROR);
|
} while (err != B_BAD_PORT_ID);
|
||||||
TRACE("SystemTimeSource::ControlThread() exit\n");
|
TRACE("SystemTimeSource::ControlThread() exit\n");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user