1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 20:12:07 +01:00

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
This commit is contained in:
Gaston Dombiak 2004-06-14 17:00:04 +00:00 committed by gdombiak
parent 9a7ad5d3cb
commit 0e938bfe1a

View file

@ -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.