Skip to content

Commit

Permalink
abort deapproved transports
Browse files Browse the repository at this point in the history
  • Loading branch information
turbocrime committed Jul 24, 2024
1 parent d2fb978 commit 9024dec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/extension/src/senders/disconnect.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { alreadyApprovedSender } from './approve';
import { removeOriginRecord } from '../storage/origin';
import { CRSessionManager } from '@penumbra-zone/transport-chrome/session-manager';

/**
* Remove the approval status of an approved origin, for use by disconnect
Expand All @@ -17,5 +18,6 @@ export const disconnectSender = (disconnect: { origin: string }) =>
throw new Error('Sender does not possess approval');
} else {
void removeOriginRecord(disconnect.origin);
CRSessionManager.killOrigin(disconnect.origin);
}
});

0 comments on commit 9024dec

Please sign in to comment.