aboutsummaryrefslogtreecommitdiff
path: root/src/IvyClient.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/IvyClient.java')
-rwxr-xr-xsrc/IvyClient.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/IvyClient.java b/src/IvyClient.java
index 3857631..d98bb0f 100755
--- a/src/IvyClient.java
+++ b/src/IvyClient.java
@@ -19,6 +19,9 @@ import gnu.regexp.*;
* created for each remote client.
*
* CHANGELOG:
+ * 1.2.1:
+ * - removes a NullPointerException when stops pinging on a pinger that
+ * wasn't even started
* 1.0.12:
* - introducing a Ping and Pong in the protocol, in order to detect the loss of
* connection faster. Enabled through the use of -DIVY_PING variable only
@@ -152,7 +155,7 @@ public class IvyClient implements Runnable {
*/
void close(boolean notify) throws IOException {
traceDebug("closing connexion to "+appName);
- if (doping) { pinger.stopPinging(); }
+ if (doping&&(pinger!=null)) { pinger.stopPinging(); }
if (notify) sendBye("hasta la vista");
stopListening();
// bus.clientDisconnect(this);