8000 未关闭 WebSocket 的条件下调用 `Application.Quit()` 会导致 Unity 应用程序未响应 · Issue #41 · psygames/UnityWebSocket · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

未关闭 WebSocket 的条件下调用 Application.Quit() 会导致 Unity 应用程序未响应 #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AkagawaTsurunaki opened this issue Nov 29, 2024 · 2 comments

Comments

@AkagawaTsurunaki
Copy link

复现步骤:
假设已将 Unity 打包至 Windows 平台:

  1. 以 Unity 为 WebSocket 客户端的方式连接到一个 WebSocket 服务器,连接成功。
  2. 利用按钮触发事件,调用 Application.Quit()
  3. Unity 应用程序进入了未响应的状态。

其他信息:
Unity: 2021.3.44f1c1
Target platform: Windows 11
UnityWebSocket: 2.8.5

暂时的解决方案?
在调用 Application.Quit() 前使用 CloseAsync() 关闭 WebSocket 连接。

@psygames
Copy link
Owner
psygames commented Dec 3, 2024

@AkagawaTsurunaki 多谢反馈,我找时间修复一下这个问题!

psygames added a commit that referenced this issue Dec 29, 2024
## Changes
- [BUGFIX] #41 未关闭 WebSocket 的条件下调用 Application.Quit() 会导致 Unity 应用程序未响应
- 支持 Unity 6000, WebAssembly 2023
@psygames
Copy link
Owner

Fix on v2.8.6

psygames added a commit that referenced this issue Dec 29, 2024
## Changes
- [BUGFIX] #41 未关闭 WebSocket 的条件下调用 Application.Quit() 会导致 Unity 应用程序未响应
- 支持 Unity 6000, WebAssembly 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0