Skip to content

Commit

Permalink
Fix FileHandler not sending reports
Browse files Browse the repository at this point in the history
  • Loading branch information
ThexXTURBOXx committed Feb 18, 2024
1 parent 6020ef7 commit 9117bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/handlers/file_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class FileHandler extends ReportHandler {

@override
Future<bool> handle(Report report, BuildContext? context) async {
_openedFile = fileSupplier != null ? fileSupplier!(report) : file;
try {
if (!_fileValidated) {
_fileValidationResult = await _checkFile();
Expand Down Expand Up @@ -83,7 +84,6 @@ class FileHandler extends ReportHandler {
}

Future<void> _openFile(Report report) async {
_openedFile = fileSupplier != null ? fileSupplier!(report) : file;
_sink = _openedFile!.openWrite(mode: FileMode.append);
_printLog('Opened file');
}
Expand Down

0 comments on commit 9117bd4

Please sign in to comment.