Skip to content

Commit 0c2b5f8

Browse files
Merge pull request #1174 from onematchfox/fix/autorecoveringmodel-isclosed
`AutorecoveringModel.IsClosed` should return `true` if model is unusable
2 parents 4d624be + 9fabb5b commit 0c2b5f8

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -360,14 +360,7 @@ public bool IsClosed
360360
{
361361
get
362362
{
363-
if (_delegate == null)
364-
{
365-
return false;
366-
}
367-
else
368-
{
369-
return _delegate.IsClosed;
370-
}
363+
return !IsOpen;
371364
}
372365
}
373366

0 commit comments

Comments
 (0)