public OperationResponse HandleLeaveLobby(OperationRequest operationRequest) { this.GameChannelSubscription = null; if (this.AppLobby == null) { return(new OperationResponse { OperationCode = operationRequest.OperationCode, ReturnCode = 0, DebugMessage = "lobby not joined" }); } this.AppLobby.RemovePeer(this); this.AppLobby = null; return(new OperationResponse(operationRequest.OperationCode)); }
public OperationResponse HandleLeaveLobby(OperationRequest operationRequest) { this.GameChannelSubscription = null; if (this.AppLobby == null) { return new OperationResponse { OperationCode = operationRequest.OperationCode, ReturnCode = 0, DebugMessage = "lobby not joined" }; } this.AppLobby.RemovePeer(this); this.AppLobby = null; return new OperationResponse(operationRequest.OperationCode); }