Skip to content

Commit

Permalink
Provide a successful result on null send.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias committed Apr 6, 2015
1 parent e98bdc5 commit 709d111
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -109,7 +109,7 @@ public void onResult(SendResult sendResult) {
};

if (message == null) {
handler.onResult(null);
handler.onResult(new SendResult());
} else if (message instanceof String) {
this.session.getAsyncRemote().sendText((String)message, handler);
} else if (message instanceof byte[]) {
Expand Down

0 comments on commit 709d111

Please sign in to comment.