Fix 'tail eating' bug which was trying to start a new WaitCommEvent on a port.m_Comm handle before the previous WaitCommEvent had finished.
Fix 'tail eating' bug which was trying to start a new WaitCommEvent on a port.m_Comm handle before the previous WaitCommEvent had finished.
Fix 'tail eating' bug which was trying to start a new WaitCommEvent on a port.m_Comm handle before the previous WaitCommEvent had finished.
After calling CancelIo, wait for all IO operations to finish before closing handles and freeing OVERLAPPED structures.
Fix couple of problems I found on windows platform:
- sendBreak resulted in "timeout value is negative" error
- WinAPI.SetCommBreak mistakenly called CloseHandle
- random "port not locked" caused by problem in JTermiosImpl.lock()
Merge pull request #20 from AriSuutariST/onewire-fixes

Fix couple of problems I found on windows platform (issues #18 & #19)
Merge pull request #17 from roniegh/377840f6068e5dc4c9693030b7a736977ca3aeee

Fix for 'tail eating' bug which was trying to start a new WaitCommEvent on a port.m_Comm handle before the previous WaitCommEvent had finished.
Merge pull request #21 from roniegh/960ae8d58e3b94aa8ca897b7efe2340adc167a86

After calling CancelIo, wait for all IO operations to finish before closing handles and freeing OVERLAPPED structures.