File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -731,11 +731,7 @@ ChatProxy.prototype = {
731
731
732
732
// enable carbons
733
733
self . _enableCarbons ( ) ;
734
-
735
- // chat server will close your connection if you are not active in chat during one minute
736
- // initial presence and an automatic reminder of it each 55 seconds
737
- self . connection . send ( $pres ( ) ) ;
738
-
734
+
739
735
if ( typeof callback === 'function' ) {
740
736
if ( params . connectWithoutGettingRoster ) {
741
737
// connected and return nothing as result
@@ -759,13 +755,16 @@ ChatProxy.prototype = {
759
755
for ( var i = 0 , len = rooms . length ; i < len ; i ++ ) {
760
756
self . muc . join ( rooms [ i ] ) ;
761
757
}
762
-
758
+
763
759
// fire 'onReconnectListener'
764
- if ( typeof self . onReconnectListener === 'function' ) {
760
+ if ( typeof self . onReconnectListener === 'function' ) {
765
761
Utils . safeCallbackCall ( self . onReconnectListener ) ;
766
762
}
767
763
}
768
764
765
+ // chat server will close your connection if you are not active in chat during one minute
766
+ // initial presence and an automatic reminder of it each 55 seconds
767
+ self . connection . send ( $pres ( ) ) ;
769
768
break ;
770
769
case Strophe . Status . DISCONNECTING :
771
770
Utils . QBLog ( '[Chat]' , 'Status.DISCONNECTING' ) ;
You can’t perform that action at this time.
0 commit comments