Simplify and improve the QSP::TimeoutError handling
It is reasonable to get rid of duplicating a code of TimeoutError
handling. A common parts of a code can be moved to one place.
Also, can be improved some of related if/else conditions.
Tested on Windows 8 and Linux with virtual serial ports.
Change-Id: I63112727faf42d4357f64f3450ea422167eaee90
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
| commit | 3ebd455163edbcb152eef475e4718362833a3581 |
| parent | e54305ffde1f5e8d02687ce9ddae55f8128de32d |
| author | Denis Shienkov <denis.shienkov@gmail.com> |
| committer | Denis Shienkov <denis.shienkov@gmail.com> |
| commit time | Fri, 28 Nov 2014 12:59:05 +0100 |