mirror of
https://github.com/vanitasvitae/OmemoQRCodeGenerator.git
synced 2024-12-26 21:08:00 +01:00
Simply call no-parameter disconnect() in Main
cause we can.
This commit is contained in:
parent
d00518b87c
commit
f819102ca7
1 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,6 @@ import java.util.logging.Level;
|
|||
import java.util.logging.Logger;
|
||||
|
||||
import org.jivesoftware.smack.SmackConfiguration;
|
||||
import org.jivesoftware.smack.packet.Presence;
|
||||
import org.jivesoftware.smack.tcp.XMPPTCPConnection;
|
||||
import org.jivesoftware.smackx.omemo.internal.OmemoDevice;
|
||||
import org.jivesoftware.smackx.omemo.trust.OmemoFingerprint;
|
||||
|
@ -114,7 +113,7 @@ public class Main extends Application implements LoginCallback {
|
|||
LOGGER.info(Util.twoLinesFingerprint(fingerprints.get(device)));
|
||||
}
|
||||
|
||||
connection.disconnect(new Presence(Presence.Type.unavailable));
|
||||
connection.disconnect();
|
||||
|
||||
FXMLLoader loader = new FXMLLoader();
|
||||
loader.setLocation(getClass().getResource("/fxml/qrdisplay.fxml"));
|
||||
|
|
Loading…
Reference in a new issue