1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-13 07:04:49 +02:00

Add XMPPTCPConnection.streamWasResumed()

This commit is contained in:
Florian Schmaus 2014-12-17 10:34:16 +01:00
parent 84ffa265ce
commit d0341c1d94

View file

@ -1624,6 +1624,15 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
return smEnabledSyncPoint.wasSuccessful(); return smEnabledSyncPoint.wasSuccessful();
} }
/**
* Returns true if the stream was successfully resumed with help of Stream Management.
*
* @return true if the stream was resumed.
*/
public boolean streamWasResumed() {
return smResumedSyncPoint.wasSuccessful();
}
/** /**
* Returns true if the connection is disconnected by a Stream resumption via Stream Management is possible. * Returns true if the connection is disconnected by a Stream resumption via Stream Management is possible.
* *