Skip to content

Commit

Permalink
fix: prevent deadlockwith stuck bulk transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
acolombier committed Oct 13, 2024
1 parent 4bb5cb7 commit 0053ca0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/controllers/bulk/bulkcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,12 @@ void BulkController::sendBytes(const QByteArray& data) {
(unsigned char*)data.constData(),
data.size(),
&transferred,
0);
5000 // Send timeout in milliseconds
);
if (ret < 0) {
qCWarning(m_logOutput) << "Unable to send data to" << getName()
<< "serial #" << m_sUID << "-" << libusb_error_name(ret);
} else {
} else if (CmdlineArgs::Instance().getControllerDebug()) {
qCDebug(m_logOutput) << transferred << "bytes sent to" << getName()
<< "serial #" << m_sUID;
}
Expand Down

0 comments on commit 0053ca0

Please sign in to comment.