WakeLock finalized while still held: MqttService.client.xxxxxxx

996 views Asked by At

I encountered a problem when using mqtt: Create and connect in Service. After the device is connected to the network, the link is normal. At this time, the router connected to the device cannot access the Internet. From the log, it can be seen that mqtt performs heartbeat processing. When the connectionLost callback method is triggered, the PowerManager often appears. Related print information: WakeLock finalized while still held: MqttService.client.QWERTYUIOP1006, then the current application was stopped, without any crash information and related information similar to anr. Has anyone encountered this problem?

By the way,My application runs on an Android device and is powered by the power supply. The screen is always on. I don’t know if it will have any impact.

0

There are 0 answers