eclipse-paho / eclipse-paho/paho.mqtt.java

ClientComms close(force) can not work

Open
#875 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.3k
Forks
919
PR merge metrics
No merged PRs in 30d

Description

Please fill out the form below before submitting, thank you!

- [√] Bug exists Release Version 1.2.5 ( Master Branch)

ClientComms - close(force)
```
// Must be disconnected before close can take place or if we are being forced
if (!isDisconnected() || force) {
//@TRACE 224=failed: not disconnected
log.fine(CLASS_NAME, methodName, "224");
.... do some check ....
}
```

the force flag is should be reverse.

when I call client diconnect() before close(force). the disconnect throw exception, and then the close force not success

I call client diconnectForcibly instead of disconnect now.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.