It's crashed even close the listen socket by loop::defer #1122
Answered
by
ghost
pengweichu
asked this question in
Q&A
-
In fact, I read all user manual, and all other related issues, below are my minimal code, you can see I closed the listen socket by loop::defer, but still got the same crash, just run it, no need to open the browser to connect, I'm using master branch with libuv 1.4.0.
|
Beta Was this translation helpful? Give feedback.
Answered by
ghost
Nov 9, 2020
Replies: 1 comment
-
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. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.