diff --git a/panda/src/pstatclient/pStatClientImpl.cxx b/panda/src/pstatclient/pStatClientImpl.cxx index 02f1764b81..85d7e45f27 100644 --- a/panda/src/pstatclient/pStatClientImpl.cxx +++ b/panda/src/pstatclient/pStatClientImpl.cxx @@ -124,6 +124,11 @@ client_connect(std::string hostname, int port) { MutexDebug::increment_pstats(); #endif // DEBUG_THREADS + // Wait for the server hello. + while (!_got_udp_port) { + transmit_control_data(); + } + return _is_connected; }