Permalink
Browse files

Merge pull request #11 from dobermai/master

Fixes Issue #10
  • Loading branch information...
2 parents 7cfafd4 + 6fb152f commit 14f118a7c3c70480358aaffeef1dd1afdf3471f8 @chirino chirino committed Oct 10, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 mqtt-client/src/main/java/org/fusesource/mqtt/client/CallbackConnection.java
@@ -503,7 +503,9 @@ public void run() {
}
}
};
- transport.flush();
+ if(transport != null){
+ transport.flush();
+ }
}
public void onFailure(Throwable value) {
stop.run();

0 comments on commit 14f118a

Please sign in to comment.