Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lonelyteapot committed Sep 8, 2023
1 parent a976ed2 commit e3bf9e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dio/lib/src/adapters/browser_adapter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ class BrowserHttpClientAdapter implements HttpClientAdapter {
connectTimeoutTimer!.cancel();
connectTimeoutTimer = null;
}

final sendTimeout = options.sendTimeout;
if (sendTimeout != null) {
if (!uploadStopwatch.isRunning) {
uploadStopwatch.start();
}

final duration = uploadStopwatch.elapsed;
if (duration > sendTimeout) {
uploadStopwatch.stop();
Expand Down

0 comments on commit e3bf9e9

Please sign in to comment.