mirror of https://github.com/FreeRDP/FreeRDP
winpr-comm: don't loop yet on IOCTL_SERIAL_WAIT_ON_MASK
This commit is contained in:
parent
1cb1fd6764
commit
a36467c353
|
@ -1305,8 +1305,9 @@ static BOOL _wait_on_mask(WINPR_COMM *pComm, ULONG *pOutputMask)
|
|||
{
|
||||
assert(*pOutputMask == 0);
|
||||
|
||||
|
||||
while (TRUE)
|
||||
// TMP: TODO:
|
||||
// TMP: TODO: wait also on a PendingEvents modification, and a new identical IRP
|
||||
/* while (TRUE) */
|
||||
{
|
||||
SERIAL_STATUS serialStatus;
|
||||
|
||||
|
@ -1335,11 +1336,6 @@ static BOOL _wait_on_mask(WINPR_COMM *pComm, ULONG *pOutputMask)
|
|||
/* at least an event occurred */
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* // TMP: */
|
||||
DEBUG_WARN("waiting on events:0X%lX", pComm->waitMask);
|
||||
|
||||
sleep(1); // TMP: TODO: wait also on a PendingEvents modification, and a new identical IRP
|
||||
}
|
||||
|
||||
DEBUG_WARN("_wait_on_mask pending on events:0X%lX", pComm->waitMask);
|
||||
|
|
Loading…
Reference in New Issue