Skip to content

Commit

Permalink
feat: revert unnecessary waitAfterClose feature
Browse files Browse the repository at this point in the history
  • Loading branch information
gkc committed Nov 16, 2024
1 parent 7f50e6f commit f7e5cec
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/src/socket_connector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,12 @@ class SocketConnector {

bool gracePeriodPassed = false;

Duration? waitAfterClose;

SocketConnector({
this.verbose = false,
this.logTraffic = false,
this.timeout = defaultTimeout,
this.authTimeout = defaultTimeout,
IOSink? logger,
this.waitAfterClose,
}) {
this.logger = logger ?? stderr;
Timer(timeout, () {
Expand Down Expand Up @@ -215,10 +212,6 @@ class SocketConnector {
}
side.state = SideState.closed;

if (waitAfterClose != null) {
_log(chalk.brightBlue('_closeSide ${side.name}: waiting for $waitAfterClose'));
await Future.delayed(waitAfterClose!);
}
_log(chalk.brightBlue('_closeSide ${side.name}: RCVD: ${side.rcvd} bytes; SENT: ${side.sent} bytes'));

Connection? connectionToRemove;
Expand Down

0 comments on commit f7e5cec

Please sign in to comment.