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

在自动重连选项下,解决CommsCallback线程在连接上MQTT服务器,当服务器断开后,重连的线程一直会在line:109空转 #947

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AiHaoChen
Copy link

while (!isRunning()) {
try { Thread.sleep(100); } catch (Exception e) { }
}
如果重连断开的次数过多,最终造成CommsCallback线程无限增长的状况。

while (!isRunning()) {
                                                       			try { Thread.sleep(100); } catch (Exception e) { }
                                                       		}
如果重连断开的次数过多,最终造成CommsCallback线程无限增长的状况。
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

Successfully merging this pull request may close these issues.

1 participant