diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2015-08-27 12:16:15 +0300 |
---|---|---|
committer | Denis Shienkov <denis.shienkov@gmail.com> | 2015-08-27 12:47:46 +0000 |
commit | bec0b027f802d20dee00a33e9bc83d1d07b2dd42 (patch) | |
tree | 834ca6a957c25cb3841544e1b7fff5a978652755 /src/serialport/qserialport.cpp | |
parent | 8f7cd12c08095c17e96c3baf2076679529742023 (diff) | |
download | qtserialport-bec0b027f802d20dee00a33e9bc83d1d07b2dd42.tar.gz |
Avoid to start of communication notifier if it already is active
This happens in the QSP::clear() method, where the WaitCommEvent()
function returns with an error "The parameter is incorrect",
because it calls when the waiting already is active.
Tested with the virtual com0com and on-board serial ports.
Change-Id: I351a336f2d3c05852a654e7bccc3ff84d7aba025
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'src/serialport/qserialport.cpp')
-rw-r--r-- | src/serialport/qserialport.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/serialport/qserialport.cpp b/src/serialport/qserialport.cpp index 1126fb9..8bf71c6 100644 --- a/src/serialport/qserialport.cpp +++ b/src/serialport/qserialport.cpp @@ -67,6 +67,7 @@ QSerialPortPrivate::QSerialPortPrivate() , handle(INVALID_HANDLE_VALUE) , parityErrorOccurred(false) , readChunkBuffer(ReadChunkSize, 0) + , communicationStarted(false) , writeStarted(false) , readStarted(false) , notifier(0) |