Skip to content

Commit

Permalink
Remove commented out calls to throwExceptionIfClosed. Fixes #1386 (#1387
Browse files Browse the repository at this point in the history
)
  • Loading branch information
tgd authored Jul 13, 2023
1 parent 108557b commit 5077374
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,15 +270,11 @@ public int sourceId() {
*/
@Override
public long lastAcknowledgedIndexReplicated() {
// throwExceptionIfClosed();

return lastAcknowledgedIndexReplicated == null ? -1 : lastAcknowledgedIndexReplicated.getVolatileValue(-1);
}

@Override
public void lastAcknowledgedIndexReplicated(long newValue) {
// throwExceptionIfClosed();

if (lastAcknowledgedIndexReplicated != null)
lastAcknowledgedIndexReplicated.setMaxValue(newValue);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ public boolean readDocument(@NotNull final ReadMarshallable reader) {
@Override
@NotNull
public DocumentContext readingDocument() {
// throwExceptionIfClosed();

// trying to create an initial document without a direction should not consume a message
final long index = index();
if (direction == NONE && (index == indexAtCreation || index == 0) && !readingDocumentFound) {
Expand Down

0 comments on commit 5077374

Please sign in to comment.