diff options
-rw-r--r-- | src/serialport/qserialport_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serialport/qserialport_win.cpp b/src/serialport/qserialport_win.cpp index 3a42816..5747b26 100644 --- a/src/serialport/qserialport_win.cpp +++ b/src/serialport/qserialport_win.cpp @@ -178,7 +178,7 @@ public: bool ret = dptr->completeAsyncRead(numberOfBytesTransferred); // start async read for possible remainder into driver queue - if (ret && numberOfBytesTransferred > 0) { + if (ret && (numberOfBytesTransferred > 0) && (dptr->policy == QSerialPort::IgnorePolicy)) { dptr->startAsyncRead(); } else { // driver queue is emplty, so startup wait comm event CommOverlappedEventNotifier *n = |