@@ -109,7 +109,7 @@ @interface XMPPStream ()
109
109
UInt16 hostPort;
110
110
111
111
BOOL autoStartTLS;
112
- BOOL bypassSession ;
112
+ BOOL skipStartSession ;
113
113
114
114
id <XMPPSASLAuthentication> auth;
115
115
NSDate *authenticationDate;
@@ -670,32 +670,32 @@ - (void)setResetByteCountPerConnection:(BOOL)flag
670
670
dispatch_async (xmppQueue, block);
671
671
}
672
672
673
- - (BOOL )bypassSession
673
+ - (BOOL )skipStartSession
674
674
{
675
- __block BOOL result = NO ;
676
-
677
- dispatch_block_t block = ^{
678
- result = bypassSession ;
679
- };
680
-
681
- if (dispatch_get_specific (xmppQueueTag))
682
- block ();
683
- else
684
- dispatch_sync (xmppQueue, block);
685
-
686
- return result;
675
+ __block BOOL result = NO ;
676
+
677
+ dispatch_block_t block = ^{
678
+ result = skipStartSession ;
679
+ };
680
+
681
+ if (dispatch_get_specific (xmppQueueTag))
682
+ block ();
683
+ else
684
+ dispatch_sync (xmppQueue, block);
685
+
686
+ return result;
687
687
}
688
688
689
- - (void )setBypassSession : (BOOL )flag
689
+ - (void )setSkipStartSession : (BOOL )flag
690
690
{
691
- dispatch_block_t block = ^{
692
- bypassSession = flag;
693
- };
694
-
695
- if (dispatch_get_specific (xmppQueueTag))
696
- block ();
697
- else
698
- dispatch_async (xmppQueue, block);
691
+ dispatch_block_t block = ^{
692
+ skipStartSession = flag;
693
+ };
694
+
695
+ if (dispatch_get_specific (xmppQueueTag))
696
+ block ();
697
+ else
698
+ dispatch_async (xmppQueue, block);
699
699
}
700
700
701
701
#if TARGET_OS_IPHONE
@@ -3517,7 +3517,7 @@ - (void)handleBinding:(NSXMLElement *)response
3517
3517
// Don't forget about that NSXMLElement bug you reported to apple (xmlns is required or element won't be found)
3518
3518
NSXMLElement *f_session = [features elementForName: @" session" xmlns: @" urn:ietf:params:xml:ns:xmpp-session" ];
3519
3519
3520
- if (f_session && (![self bypassSession ]))
3520
+ if (f_session && (![self skipStartSession ]))
3521
3521
{
3522
3522
NSXMLElement *session = [NSXMLElement elementWithName: @" session" ];
3523
3523
[session setXmlns: @" urn:ietf:params:xml:ns:xmpp-session" ];
0 commit comments