From 0e938bfe1a4f3aef6f988291c10ebd413332ebba Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Mon, 14 Jun 2004 17:00:04 +0000 Subject: [PATCH] Adds a method that anwwers if the connection with the server is active. SMACK-139 git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2328 b35dd754-fafc-0310-a699-88a17e54d16e --- .../jivesoftware/smackx/debugger/EnhancedDebugger.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/org/jivesoftware/smackx/debugger/EnhancedDebugger.java b/source/org/jivesoftware/smackx/debugger/EnhancedDebugger.java index e005921f6..bfaec5f58 100644 --- a/source/org/jivesoftware/smackx/debugger/EnhancedDebugger.java +++ b/source/org/jivesoftware/smackx/debugger/EnhancedDebugger.java @@ -783,6 +783,15 @@ public class EnhancedDebugger implements SmackDebugger { } return str; } + + /** + * Returns true if the debugger's connection with the server is up and running. + * + * @return true if the connection with the server is active. + */ + boolean isConnectionActive() { + return connection.isConnected(); + } /** * Stops debugging the connection. Removes any listener on the connection.