Skip to content

Commit

Permalink
fix: pubsub.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
uki00a committed Oct 21, 2023
1 parent 1aba955 commit 51942c6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pubsub.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { CommandExecutor } from "./executor.ts";
import { InvalidStateError } from "./errors.ts";
import { EOFError, InvalidStateError } from "./errors.ts";
import type { Binary } from "./protocol/mod.ts";
import { decoder } from "./protocol/_util.ts";
import { kUnstableReadReply } from "./internal/symbols.ts";
Expand Down Expand Up @@ -103,10 +103,6 @@ class RedisSubscriptionImpl<
connection.close();
break;
}
if (connection.isClosed) {
// Connection already closed.
break;
}
throw err;
}

Expand Down Expand Up @@ -139,6 +135,7 @@ class RedisSubscriptionImpl<
}
} catch (error) {
if (
error instanceof EOFError ||
error instanceof InvalidStateError ||
error instanceof Deno.errors.BadResource
) {
Expand Down

0 comments on commit 51942c6

Please sign in to comment.