mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-23 14:52:06 +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
|
@ -784,6 +784,15 @@ public class EnhancedDebugger implements SmackDebugger {
|
||||||
return str;
|
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.
|
* Stops debugging the connection. Removes any listener on the connection.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue