diff --git a/src/Channel.php b/src/Channel.php index 7652787..e51917d 100644 --- a/src/Channel.php +++ b/src/Channel.php @@ -1171,7 +1171,7 @@ private function throwIfClosed(): void $this->cancellation()->throwIfRequested(); throw new ChannelException('Channel #' . $this->id . ' was closed, state: ' . $this->state); } catch (CancelledException $e) { - throw new ChannelException('Channel #' . $this->id . ' was closed, state: ' . $this->state . ', cancelled: ' . $e->getPrevious()?->getMessage()); + throw new ChannelException('Channel #' . $this->id . ' was closed, state: ' . $this->state . ', cancelled: ' . $e->getPrevious()?->getMessage(), 0, $e->getPrevious()); } } }