Skip to content

Commit bb84da0

Browse files
Merge pull request #1179 from onematchfox/fix/autorecoveringmodel-isclosed
`AutorecoveringModel.IsClosed` should return `true` if model is unusable
2 parents 4e18f60 + c5eddd1 commit bb84da0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/RabbitMQ.Client/client/impl/AutorecoveringModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public IBasicConsumer DefaultConsumer
132132
set => InnerChannel.DefaultConsumer = value;
133133
}
134134

135-
public bool IsClosed => _innerChannel != null && _innerChannel.IsClosed;
135+
public bool IsClosed => !IsOpen;
136136

137137
public bool IsOpen => _innerChannel != null && _innerChannel.IsOpen;
138138

0 commit comments

Comments
 (0)