File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1304,8 +1304,9 @@ void CConnman::NotifyNumConnectionsChanged()
1304
1304
}
1305
1305
if (vNodesSize != nPrevNodeCount) {
1306
1306
nPrevNodeCount = vNodesSize;
1307
- if (clientInterface)
1307
+ if (clientInterface) {
1308
1308
clientInterface->NotifyNumConnectionsChanged (vNodesSize);
1309
+ }
1309
1310
}
1310
1311
}
1311
1312
@@ -2448,7 +2449,9 @@ void CConnman::SetNetworkActive(bool active)
2448
2449
2449
2450
fNetworkActive = active;
2450
2451
2451
- uiInterface.NotifyNetworkActiveChanged (fNetworkActive );
2452
+ if (clientInterface) {
2453
+ clientInterface->NotifyNetworkActiveChanged (fNetworkActive );
2454
+ }
2452
2455
}
2453
2456
2454
2457
CConnman::CConnman (uint64_t nSeed0In, uint64_t nSeed1In, CAddrMan& addrman_in, bool network_active)
@@ -2556,7 +2559,9 @@ bool CConnman::Start(CScheduler& scheduler, const Options& connOptions)
2556
2559
LogPrintf (" %i block-relay-only anchors will be tried for connections.\n " , m_anchors.size ());
2557
2560
}
2558
2561
2559
- uiInterface.InitMessage (_ (" Starting network threads…" ).translated );
2562
+ if (clientInterface) {
2563
+ clientInterface->InitMessage (_ (" Starting network threads…" ).translated );
2564
+ }
2560
2565
2561
2566
fAddressesInitialized = true ;
2562
2567
You can’t perform that action at this time.
0 commit comments