mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 09:09:38 +02:00
Merge branch '4.1'
This commit is contained in:
commit
194717d75b
2 changed files with 12 additions and 2 deletions
|
@ -1465,8 +1465,19 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
|
|||
* Set if Stream Management resumption should be used by default for new connections.
|
||||
*
|
||||
* @param useSmResumptionDefault true to use Stream Management resumption for new connections.
|
||||
* @deprecated use {@link #setUseStreamManagementResumptionDefault(boolean)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public static void setUseStreamManagementResumptiodDefault(boolean useSmResumptionDefault) {
|
||||
setUseStreamManagementDefault(useSmResumptionDefault);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set if Stream Management resumption should be used by default for new connections.
|
||||
*
|
||||
* @param useSmResumptionDefault true to use Stream Management resumption for new connections.
|
||||
*/
|
||||
public static void setUseStreamManagementResumptionDefault(boolean useSmResumptionDefault) {
|
||||
if (useSmResumptionDefault) {
|
||||
// Also enable SM is resumption is enabled
|
||||
setUseStreamManagementDefault(useSmResumptionDefault);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue