Skip to content

Commit

Permalink
perf: update web sz
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed Oct 16, 2024
1 parent 1309236 commit 9a6dade
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/src/hooks/useZsentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ export const useSentry = (lastSendTime?: Ref<Date>, t?: any): IUseSentry => {
* @param terminal
*/
const handleReceiveSession = (zsession: ZmodemSession, terminal: Terminal) => {
zmodeSession.value = zsession;
zsession.on('offer', (xfer: ZmodemTransfer) => {
const buffer: Uint8Array[] = [];
const detail = xfer.get_details();
Expand Down Expand Up @@ -208,7 +209,9 @@ export const useSentry = (lastSendTime?: Ref<Date>, t?: any): IUseSentry => {

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

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

0 comments on commit 9a6dade

Please sign in to comment.