File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
flutter/lib/src/event_processor Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,6 @@ class ScreenshotEventProcessor implements EventProcessor {
5353 result = beforeCapture (event, hint, shouldDebounce);
5454 } else if (beforeScreenshot != null ) {
5555 result = beforeScreenshot (event, hint: hint);
56- } else if (shouldDebounce) {
57- _options.logger (
58- SentryLevel .debug,
59- 'Skipping screenshot capture due to debouncing (too many captures within ${_debouncer .waitTimeMs }ms)' ,
60- );
61- return event;
6256 }
6357
6458 bool takeScreenshot = true ;
@@ -69,6 +63,12 @@ class ScreenshotEventProcessor implements EventProcessor {
6963 } else {
7064 takeScreenshot = result;
7165 }
66+ } else if (shouldDebounce) {
67+ _options.logger (
68+ SentryLevel .debug,
69+ 'Skipping screenshot capture due to debouncing (too many captures within ${_debouncer .waitTimeMs }ms)' ,
70+ );
71+ takeScreenshot = false ;
7272 }
7373
7474 if (! takeScreenshot) {
You can’t perform that action at this time.
0 commit comments