We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5f55e5 commit 749ca4bCopy full SHA for 749ca4b
1 file changed
src/amqp-channel.ts
@@ -31,9 +31,7 @@ export class AMQPChannel {
31
this.onerror = (reason: string) => {
32
this.logger?.error(`channel ${this.id} closed: ${reason}`)
33
// Propagate channel errors to the connection's onerror handler
34
- if (this.id !== 0) { // Don't propagate for connection channel (id=0)
35
- this.connection.onerror(new AMQPError(`Channel ${this.id} closed: ${reason}`, this.connection))
36
- }
+ this.connection.onerror(new AMQPError(`Channel ${this.id} closed: ${reason}`, this.connection))
37
}
38
39
0 commit comments