mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix problem at shutdown
This commit is contained in:
parent
448d244a66
commit
09fe2062c2
@ -372,6 +372,11 @@ void PStatClient::
|
|||||||
client_main_tick() {
|
client_main_tick() {
|
||||||
LightReMutexHolder holder(_lock);
|
LightReMutexHolder holder(_lock);
|
||||||
if (has_impl()) {
|
if (has_impl()) {
|
||||||
|
if (!_impl->client_is_connected()) {
|
||||||
|
client_disconnect();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_impl->client_main_tick();
|
_impl->client_main_tick();
|
||||||
|
|
||||||
MultiThingsByName::const_iterator ni =
|
MultiThingsByName::const_iterator ni =
|
||||||
|
@ -458,7 +458,7 @@ handle_server_control_message(const PStatServerControlMessage &message) {
|
|||||||
void PStatClientImpl::
|
void PStatClientImpl::
|
||||||
connection_reset(const PT(Connection) &connection, bool) {
|
connection_reset(const PT(Connection) &connection, bool) {
|
||||||
if (connection == _tcp_connection) {
|
if (connection == _tcp_connection) {
|
||||||
_client->client_disconnect();
|
client_disconnect();
|
||||||
} else if (connection == _udp_connection) {
|
} else if (connection == _udp_connection) {
|
||||||
pstats_cat.warning()
|
pstats_cat.warning()
|
||||||
<< "Trouble sending UDP; switching to TCP only.\n";
|
<< "Trouble sending UDP; switching to TCP only.\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user