Skip to content
Permalink
Browse files

External Recorder: Make timeouts more predictable.

  • Loading branch information...
jpoet committed Nov 14, 2018
1 parent e50d9c7 commit 93a8b8cf45c4fdec322fa4dd9efa0e243075c596
@@ -84,8 +84,8 @@ bool ExternalChannel::Tune(const QString &channum)

LOG(VB_CHANNEL, LOG_INFO, LOC + "Tuning to " + channum);

if (!m_stream_handler->ProcessCommand("TuneChannel:" + channum, 10000,
result))
if (!m_stream_handler->ProcessCommand("TuneChannel:" + channum, result,
20000))
{
LOG(VB_CHANNEL, LOG_ERR, LOC + QString
("Failed to Tune %1: %2").arg(channum).arg(result));
@@ -75,7 +75,7 @@ bool ExternalRecChannelFetcher::FetchChannel(const QString & cmd,

QString result;

if (!m_stream_handler->ProcessCommand(cmd, 5000, result))
if (!m_stream_handler->ProcessCommand(cmd, result))
{
LOG(VB_CHANNEL, LOG_ERR, LOC + QString("%1 command failed.").arg(cmd));
return false;
@@ -120,8 +120,7 @@ int ExternalRecChannelFetcher::LoadChannels(void)
QString result;
int cnt = -1;

if (!m_stream_handler->ProcessCommand("LoadChannels", 50000, result,
10, 100))
if (!m_stream_handler->ProcessCommand("LoadChannels", result, 50000))
{
LOG(VB_CHANNEL, LOG_ERR, LOC + "LoadChannels command failed.");
return -1;
@@ -160,7 +160,7 @@ bool ExternalSignalMonitor::HasLock(void)
{
QString result;

m_stream_handler->ProcessCommand("HasLock?", 500, result);
m_stream_handler->ProcessCommand("HasLock?", result);
if (result.startsWith("OK:"))
{
return result.mid(3, 3) == "Yes";
@@ -176,7 +176,7 @@ int ExternalSignalMonitor::GetSignalStrengthPercent(void)
{
QString result;

m_stream_handler->ProcessCommand("SignalStrengthPercent?", 500, result);
m_stream_handler->ProcessCommand("SignalStrengthPercent?", result);
if (result.startsWith("OK:"))
{
bool ok;
@@ -202,7 +202,7 @@ int ExternalSignalMonitor::GetLockTimeout(void)
{
QString result;

m_stream_handler->ProcessCommand("LockTimeout?", 500, result);
m_stream_handler->ProcessCommand("LockTimeout?", result);
if (result.startsWith("OK:"))
{
bool ok;

0 comments on commit 93a8b8c

Please sign in to comment.
You can’t perform that action at this time.