From acf7efcff2e29a997a5c2d21629d7ef64f1e19de Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Tue, 27 Nov 2018 13:45:27 +0100 Subject: [PATCH] fix hanging 'in' command when it is the first command of the protocol and the device is offline --- src/StreamCore.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/StreamCore.cc b/src/StreamCore.cc index b50ba2d..1595c3b 100644 --- a/src/StreamCore.cc +++ b/src/StreamCore.cc @@ -919,14 +919,12 @@ evalIn() busUnlock(); flags &= ~BusOwner; } - busReadRequest(pollPeriod, readTimeout, + return busReadRequest(pollPeriod, readTimeout, expectedInput, true); - return true; } - busReadRequest(replyTimeout, readTimeout, + return busReadRequest(replyTimeout, readTimeout, expectedInput, false); // continue with readCallback() in another thread - return true; } ssize_t StreamCore::