Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
removed the test in _takeTimed for a closed mailbox as a work around …
Browse files Browse the repository at this point in the history
  • Loading branch information
bsutton committed Aug 14, 2024
1 parent 8d95611 commit 58b3f6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/mailbox.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ class Mailbox {
final remainingTime = _remainingTime(timeout, start);
_condVar.wait(_mutex, timeout: remainingTime);
}
if (_mailbox.ref.state == _stateClosed) {
throw StateError('Mailbox is closed');
}
// if (_mailbox.ref.state == _stateClosed) {
// throw StateError('Mailbox is closed');
// }

final result = _toList(_mailbox.ref.buffer, _mailbox.ref.bufferLength);

Expand Down

0 comments on commit 58b3f6d

Please sign in to comment.