summaryrefslogtreecommitdiff
path: root/src/tabs/rostertab.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabs/rostertab.py')
-rw-r--r--src/tabs/rostertab.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tabs/rostertab.py b/src/tabs/rostertab.py
index 3d01046b..cb80007a 100644
--- a/src/tabs/rostertab.py
+++ b/src/tabs/rostertab.py
@@ -241,7 +241,10 @@ class RosterInfoTab(Tab):
"""
/reconnect
"""
- self.core.disconnect(reconnect=True)
+ if self.core.xmpp.is_connected():
+ self.core.disconnect(reconnect=True)
+ else:
+ self.core.xmpp.connect()
def command_disconnect(self, args=None):
"""