Skip to content
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

服务端无法退出 #60

Open
zhanghuaifeng opened this issue Jun 7, 2023 · 4 comments
Open

服务端无法退出 #60

zhanghuaifeng opened this issue Jun 7, 2023 · 4 comments

Comments

@zhanghuaifeng
Copy link

在widget项目中启动http server,应用退出时进程无法退出,httpserver内部线程会导致应用无法退出

@daabtech
Copy link

daabtech commented Jun 7, 2023 via email

@188080501
Copy link
Owner

188080501 commented Jun 7, 2023

如果在退出前,手动把HttpServer释放掉呢?还会有这个问题吗?

@zhanghuaifeng
Copy link
Author

析构的时候应该是自动finish的

@zhanghuaifeng
Copy link
Author

问题的原因应该就是在析构函数中发送了信号槽通知线程结束,不应该在析构的时候发信号。还是在退出前加个停止的方法把

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

3 participants