mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
*** empty log message ***
This commit is contained in:
parent
ffb3b7b230
commit
cbf3460225
@ -136,7 +136,12 @@ send_datagram(const NetDatagram &datagram) {
|
||||
PR_Unlock(_write_mutex);
|
||||
|
||||
if (result < 0) {
|
||||
if (errcode == PR_CONNECT_RESET_ERROR) {
|
||||
if (errcode == PR_CONNECT_RESET_ERROR
|
||||
#ifdef PR_SOCKET_SHUTDOWN_ERROR
|
||||
|| errcode == PR_SOCKET_SHUTDOWN_ERROR
|
||||
|| errcode == PR_CONNECT_ABORTED_ERROR
|
||||
#endif
|
||||
) {
|
||||
// The connection has been reset; tell our manager about it
|
||||
// and ignore it.
|
||||
if (_manager != (ConnectionManager *)NULL) {
|
||||
|
@ -504,7 +504,12 @@ process_incoming_tcp_data(SocketInfo *sinfo) {
|
||||
|
||||
if (bytes_read < 0) {
|
||||
PRErrorCode errcode = PR_GetError();
|
||||
if (errcode == PR_CONNECT_RESET_ERROR) {
|
||||
if (errcode == PR_CONNECT_RESET_ERROR
|
||||
#ifdef PR_SOCKET_SHUTDOWN_ERROR
|
||||
|| errcode == PR_SOCKET_SHUTDOWN_ERROR
|
||||
|| errcode == PR_CONNECT_ABORTED_ERROR
|
||||
#endif
|
||||
) {
|
||||
// The socket was closed.
|
||||
if (_manager != (ConnectionManager *)NULL) {
|
||||
_manager->connection_reset(sinfo->_connection);
|
||||
@ -557,7 +562,12 @@ process_incoming_tcp_data(SocketInfo *sinfo) {
|
||||
|
||||
if (bytes_read < 0) {
|
||||
PRErrorCode errcode = PR_GetError();
|
||||
if (errcode == PR_CONNECT_RESET_ERROR) {
|
||||
if (errcode == PR_CONNECT_RESET_ERROR
|
||||
#ifdef PR_SOCKET_SHUTDOWN_ERROR
|
||||
|| errcode == PR_SOCKET_SHUTDOWN_ERROR
|
||||
|| errcode == PR_CONNECT_ABORTED_ERROR
|
||||
#endif
|
||||
) {
|
||||
// The socket was closed.
|
||||
if (_manager != (ConnectionManager *)NULL) {
|
||||
_manager->connection_reset(sinfo->_connection);
|
||||
|
Loading…
x
Reference in New Issue
Block a user