Ignore failures when stopping stream stats tracking
Stop everything irrespective of any failures
This commit is contained in:
parent
682d0cc5c9
commit
823f01557b
@ -199,23 +199,24 @@ _tx_fail:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: stop everything possible, don't revert in case of error
|
|
||||||
bool PcapPort::stopStreamStatsTracking()
|
bool PcapPort::stopStreamStatsTracking()
|
||||||
{
|
{
|
||||||
if (!transmitter_->setStreamStatsTracking(false))
|
bool ret = true;
|
||||||
goto _tx_fail;
|
|
||||||
if (!txTtagStatsPoller_->stop())
|
|
||||||
goto _tx_ttag_fail;
|
|
||||||
if (!rxStatsPoller_->stop())
|
|
||||||
goto _rx_fail;
|
|
||||||
return true;
|
|
||||||
|
|
||||||
_rx_fail:
|
if (!transmitter_->setStreamStatsTracking(false)) {
|
||||||
_tx_ttag_fail:
|
qWarning("failed to stop Transmitter stream stats tracking");
|
||||||
transmitter_->setStreamStatsTracking(true); // FIXME: needed?
|
ret = false;
|
||||||
_tx_fail:
|
}
|
||||||
qWarning("failed to stop stream stats tracking");
|
if (!txTtagStatsPoller_->stop()) {
|
||||||
return false;
|
qWarning("failed to stop TxTtag stream stats thread");
|
||||||
|
ret = false;
|
||||||
|
}
|
||||||
|
if (!rxStatsPoller_->stop()) {
|
||||||
|
qWarning("failed to stop Rx stream stats thread");
|
||||||
|
ret = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user