Skip to content
Prev Previous commit
Next Next commit
tighten types
  • Loading branch information
W-A-James committed May 14, 2024
commit 27f4de2aa12664e3cc13d6703502a3d3333f8372
5 changes: 1 addition & 4 deletions src/sdam/monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,10 +521,7 @@ export class RTTPinger {
this.connection = undefined;
}

private measureAndReschedule(start?: number, conn?: Connection) {
if (start == null) {
start = now();
}
private measureAndReschedule(start: number, conn?: Connection) {
if (this.closed) {
conn?.destroy();
return;
Expand Down