Open xiaozefeng opened 1 year ago
I have no idea, but I’m not sure what you’re doing here.
I think you should just block on the spawned tokio task to await its completion. Or, for that matter, you appear to be running in an asynchronous tokio main function, so you don’t need a separate async task to run the MQTT connection?
I want to manually listen to the linux signal in rust to handle the disconnection。 but has bug.
My guess is that there is a processing signal at the c, but this signal is intercepted by my upper layer, causing the c layer not to process it?
full code
start it
stop it
At this point the process will get stuck。
my dependencies
emqx server version: 5.0.13