mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
refs #712, improved readers
* only trigger read when network interface is available * do not trigger all reads at same time but slightly shifted * renamed to hasReceivedOkReply()
This commit is contained in:
@@ -73,6 +73,12 @@ namespace BlackCore
|
||||
this->initialize();
|
||||
}
|
||||
|
||||
bool CThreadedReader::isNetworkAvailable() const
|
||||
{
|
||||
static const bool nw = CNetworkUtils::hasConnectedInterface();
|
||||
return nw;
|
||||
}
|
||||
|
||||
void CThreadedReader::gracefulShutdown()
|
||||
{
|
||||
// if not in main thread stop, otherwise it makes no sense to abandon
|
||||
|
||||
Reference in New Issue
Block a user