Skip to content

Commit

Permalink
fix: Lrzsz garbled
Browse files Browse the repository at this point in the history
  • Loading branch information
feng626 committed Nov 11, 2024
1 parent c82fc2e commit ec2c555
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ui/src/hooks/useZsentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,19 +210,17 @@ export const useSentry = (lastSendTime?: Ref<Date>, t?: any): IUseSentry => {
.then(() => {
ZmodemBrowser.Browser.save_to_disk(buffer, xfer.get_details().name);
message.info(`${t('DownloadSuccess')}: ${detail.name}`);

terminal.write('\r\n');

if (zmodeSession.value) {
zmodeSession.value.abort();
}
})
.catch((e: Error) => {
message.error(`Error: ${e}`);
});
});

zsession.on('session_end', () => {
if (zmodeSession.value) {
zmodeSession.value.abort();
}
terminal.write('\r\n');
});

Expand Down

0 comments on commit ec2c555

Please sign in to comment.