Skip to content

Commit

Permalink
use now from clock
Browse files Browse the repository at this point in the history
  • Loading branch information
denrase committed Oct 22, 2024
1 parent ba0b8e7 commit 3d489d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ScreenshotEventProcessor implements EventProcessor {

// ignore: invalid_use_of_internal_member
final now = _options.clock();
final difference = _lastApplyCall?.difference(DateTime.now()).abs();
final difference = _lastApplyCall?.difference(now).abs();
_lastApplyCall = now;

if (difference != null && difference < debounceDuration) {
Expand Down

0 comments on commit 3d489d9

Please sign in to comment.