SystemTimeSource: Exit loop when the port is closed

This commit is contained in:
Dario Casalinuovo 2016-01-20 01:14:42 +01:00
parent 08a65695bb
commit c21a2c7fed

View File

@ -84,6 +84,6 @@ SystemTimeSource::ControlThread()
status_t err;
do {
err = WaitForMessage(B_INFINITE_TIMEOUT);
} while (err == B_OK || err == B_ERROR);
} while (err != B_BAD_PORT_ID);
TRACE("SystemTimeSource::ControlThread() exit\n");
}