Skip to content

Commit

Permalink
修复非UnityEditor下,主动关闭连接问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
psygames committed Sep 28, 2024
1 parent bdfda25 commit a391a5b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ private void Update()
}
}

#if UNITY_EDITOR
private void OnApplicationQuit()
{
for (int i = sockets.Count - 1; i >= 0; i--)
{
sockets[i].Abort();
}
}
#endif
}
}
#endif

0 comments on commit a391a5b

Please sign in to comment.