Skip to content

Commit ed6b4d8

Browse files
committed
Fixed: Don't crash in NetplayController if connection is dropped during connecting stage.
1 parent a55375f commit ed6b4d8

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Riders.Tweakbox/Controllers/NetplayController.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,7 @@ await Shell.AddDialogAsync("Enter Password", (ref bool opened) =>
204204
/// </summary>
205205
private void OnEndScene()
206206
{
207-
if (Socket != null)
208-
{
209-
Socket.Update();
210-
Socket.OnFrame();
211-
}
207+
Socket?.Update();
208+
Socket?.OnFrame();
212209
}
213210
}

0 commit comments

Comments
 (0)