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:
parent
9a7ad5d3cb
commit
0e938bfe1a
1 changed files with 9 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue