Skip to content

Commit

Permalink
Rename Subscription.Closed to IsClosed
Browse files Browse the repository at this point in the history
  • Loading branch information
JPWatson committed Oct 30, 2018
1 parent 634d400 commit 4b92b66
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Adaptive.Aeron.Tests/SubscriptionTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void Setup()
public void ShouldEnsureTheSubscriptionIsOpenWhenPolling()
{
Subscription.Dispose();
Assert.True(Subscription.Closed);
Assert.True(Subscription.IsClosed);

A.CallTo(() => Conductor.ReleaseSubscription(Subscription)).MustHaveHappened();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Adaptive.Aeron/ClientConductor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ internal virtual void ReleaseSubscription(Subscription subscription)
_clientLock.Lock();
try
{
if (!subscription.Closed)
if (!subscription.IsClosed)
{
EnsureOpen();
EnsureNotReentrant();
Expand Down
2 changes: 1 addition & 1 deletion src/Adaptive.Aeron/Subscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ public void Dispose()
/// Has this object been closed and should no longer be used?
/// </summary>
/// <returns> true if it has been closed otherwise false. </returns>
public bool Closed => _fields.isClosed;
public bool IsClosed => _fields.isClosed;


/// <summary>
Expand Down

0 comments on commit 4b92b66

Please sign in to comment.