Check if HubConnection stopped normally (#3135)
This commit is contained in:
parent
defbadb26b
commit
297156a4ef
|
|
@ -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());
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue