Have drop() name the event a lost link warrants, and name requestOnCurrentLink() for what it does
Mirror / push (push) Successful in 6s
Test / test (18) (pull_request) Successful in 31s
Test / test (24) (pull_request) Successful in 31s
Test / test (26) (pull_request) Successful in 31s
Test / lint (pull_request) Successful in 26s
Test / test (20) (pull_request) Successful in 31s
Test / test (22) (pull_request) Successful in 31s

This commit is contained in:
2026-09-28 21:31:48 +02:00
parent 2152b995d4
commit fe320d23a8
5 changed files with 27 additions and 17 deletions
+4 -4
View File
@@ -107,14 +107,14 @@ export class LinkLife {
this.release({});
}
/** The attached link is gone. False means there was none to lose. */
drop(): boolean {
if (!this.isAttached()) return false;
/** The attached link is gone: the event that says so, or undefined when there was none to lose. */
drop(): 'close' | 'disconnected' | undefined {
if (!this.isAttached()) return undefined;
this.phase = 'down';
this.drops++;
return true;
return this.retrying() ? 'disconnected' : 'close';
}
stop(): void {