Receive disconnect events and display message for error codes.

This commit is contained in:
ehouse 2005-09-03 06:57:01 +00:00
parent b1ab4d8e27
commit 460cda0390

View file

@ -707,8 +707,10 @@ relayPreProcess( CommsCtxt* comms, XWStreamCtxt* stream, XWHostID* senderID )
*senderID = srcID;
}
break;
case XWRELAY_DISCONNECT:
case XWRELAY_CONNECTDENIED:
util_userError( comms->util, ERR_RELAY_ERROR );
util_userError( comms->util, ERR_RELAY_BASE + stream_getU8( stream ) );
/* fallthru */
default:
consumed = XP_TRUE; /* drop it */