PR 3007 Fix Seg Fault (#3008)

Co-authored-by: KD2YCU <[email protected]>
This commit is contained in:
Dan Anderson
2026-01-20 21:39:15 -08:00
committed by GitHub
co-authored by KD2YCU
parent 8017d438a9
commit 9a277a277a
+3 -1
View File
@@ -184,7 +184,9 @@ TCPSocket TCPSocket::connect(
break;
}
cb(attempt, wait);
if (cb != nullptr) {
cb(attempt, wait);
}
if (wait > 0) {
std::this_thread::sleep_for(std::chrono::milliseconds(wait));
}