Skip to content

Commit af96b04

Browse files
committed
update delay
1 parent a96b343 commit af96b04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/docan/cantp.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,9 @@ export class CAN_TP implements CanTp {
543543
sessionStMin = Math.max(stMin, addr.nCs || 0)
544544
sessionCurBs = 0
545545
waitFlowControl = false
546-
547-
await this.delay(sessionStMin, addr)
546+
if (sessionStMin) {
547+
await this.delay(sessionStMin, addr)
548+
}
548549
} catch (e) {
549550
socket.close()
550551
throw e
@@ -895,4 +896,3 @@ shall ignore the received FF N_PDU and not transmit a FC N_PDU.*/
895896
}
896897
}
897898
}
898-

0 commit comments

Comments
 (0)