Skip to content

Commit

Permalink
fix(hub connection): disconnects only when the connection status is s…
Browse files Browse the repository at this point in the history
…et to `Connected`
  • Loading branch information
claylaut committed Dec 16, 2017
1 parent 99a6b8e commit 84cde61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hub-connection.ts
Expand Up @@ -156,7 +156,7 @@ export class HubConnection<THub> {
}

disconnect() {
if (this.internalConnStatus$.value === InternalConnectionStatus.disconnected) {
if (this.internalConnStatus$.value !== InternalConnectionStatus.connected) {
return emptyNext();
}

Expand Down

0 comments on commit 84cde61

Please sign in to comment.