Skip to content

Commit

Permalink
Merge pull request #11775 from daschuer/gh11740_2
Browse files Browse the repository at this point in the history
Broadcast: Improve error message in case of timeout
  • Loading branch information
Swiftb0y committed Aug 2, 2023
2 parents 6f8248e + 2eaa562 commit d79df88
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/engine/sidechain/shoutconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,12 @@ bool ShoutConnection::processConnect() {
kLogger.warning()
<< "processConnect() socket error."
<< "Is socket already in use?";
} else if (timeout >= kConnectRetries) {
// Not translated, because shout_get_error() returns also English only
m_lastErrorStr = QStringLiteral("Connection establishment time-out");
kLogger.warning()
<< "processConnect() error:"
<< m_iShoutStatus << m_lastErrorStr;
} else if (m_pProfile->getEnabled()) {
m_lastErrorStr = shout_get_error(m_pShout);
kLogger.warning()
Expand Down

0 comments on commit d79df88

Please sign in to comment.