Skip to content

Commit 9324d68

Browse files
committed
Fix server crash bug.
1 parent e825c33 commit 9324d68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Mods/ModInterfaceEngine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public static void StartServer(int port)
153153

154154
Server.BeginAccept(new AsyncCallback((IAsyncResult ar) =>
155155
{
156-
if (ar.AsyncState as Socket == null) return;
156+
if (ar.AsyncState as Socket == null || Server == null) return;
157157

158158
Client = Server.EndAccept(ar);
159159

0 commit comments

Comments
 (0)