PR 3007 Fix Seg Fault (#3008)
Co-authored-by: KD2YCU <[email protected]>
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user