Finish any pending WaitCommEvents if the event mask is set to 0.
This commit is contained in:
parent
c4fdd2ea24
commit
32521abd4b
|
@ -359,6 +359,14 @@ DECL_HANDLER(set_serial_info)
|
|||
if(req->flags & SERIALINFO_SET_MASK)
|
||||
{
|
||||
serial->eventmask = req->eventmask;
|
||||
if(!serial->eventmask)
|
||||
{
|
||||
while(serial->wait_q.head)
|
||||
{
|
||||
async_notify(serial->wait_q.head, STATUS_SUCCESS);
|
||||
destroy_async(serial->wait_q.head);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* comm port error status */
|
||||
|
|
Loading…
Reference in New Issue