diff --git a/panda/src/pstatclient/pStatClient.cxx b/panda/src/pstatclient/pStatClient.cxx index 25970e5351..f2543933be 100644 --- a/panda/src/pstatclient/pStatClient.cxx +++ b/panda/src/pstatclient/pStatClient.cxx @@ -997,7 +997,7 @@ handle_server_control_message(const PStatServerControlMessage &message) { // has been lost. //////////////////////////////////////////////////////////////////// void PStatClient:: -connection_reset(const PT(Connection) &connection) { +connection_reset(const PT(Connection) &connection, PRErrorCode) { if (connection == _tcp_connection) { disconnect(); } else { diff --git a/panda/src/pstatclient/pStatClient.h b/panda/src/pstatclient/pStatClient.h index 5446272bc2..16c069d26d 100644 --- a/panda/src/pstatclient/pStatClient.h +++ b/panda/src/pstatclient/pStatClient.h @@ -173,7 +173,8 @@ private: void report_new_threads(); void handle_server_control_message(const PStatServerControlMessage &message); - virtual void connection_reset(const PT(Connection) &connection); + virtual void connection_reset(const PT(Connection) &connection, + PRErrorCode errcode); bool _is_connected; bool _got_udp_port;