diff options
Diffstat (limited to 'comport')
-rw-r--r-- | comport/comport.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/comport/comport.c b/comport/comport.c index f7d3a37..5634594 100644 --- a/comport/comport.c +++ b/comport/comport.c @@ -1094,8 +1094,9 @@ static void comport_tick(t_comport *x) } else { - err = -1; whicherr = GetLastError(); + if (whicherr != ERROR_IO_PENDING) + err = -1; } CloseHandle(osReader.hEvent); #else |