SDA-2710 Changes after code review

This commit is contained in:
psjostrom 2020-12-02 09:16:35 +01:00
parent 170681750e
commit 2d5efdc920

View File

@ -296,20 +296,19 @@ class ScreenSnippet {
data,
type,
};
this.deleteFile(snippetData.screenSnippetPath);
logger.info(
`screen-snippet-handler: Snippet captured! Sending data to SFE`,
);
webContents.send('screen-snippet-data', payload);
await this.verifyAndUpdateAlwaysOnTop();
}
catch (error) {
} catch (error) {
await this.verifyAndUpdateAlwaysOnTop();
logger.error(
`screen-snippet-handler: screen capture failed with error: ${error}!`,
);
} finally {
this.deleteFile(snippetData.screenSnippetPath);
}
});
}
}