Skip to content

It's crashed even close the listen socket by loop::defer #1122

Answered by ghost
pengweichu asked this question in Q&A
Discussion options

You must be logged in to vote

You are not destructing things in defined order. You have to destroy the App before the Loop because the App refers the Loop. Your example has an undefined order of destruction.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #1122 on December 09, 2020 02:55.