Check if HubConnection stopped normally (#3135)

This commit is contained in:
Mikael Mengistu 2018-10-16 12:07:56 -07:00 committed by GitHub
parent defbadb26b
commit 297156a4ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ public class Chat {
}, String.class, String.class);
hubConnection.onClosed((ex) -> {
if (ex.getMessage() != null) {
if (ex != null) {
System.out.printf("There was an error: %s", ex.getMessage());
}
});