Skip to content

Commit

Permalink
fix: wait ms on last message (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
mstephen19 authored Jul 29, 2024
1 parent d3f1738 commit 8ca7463
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/content/sequence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ const sendMessages = async () => {
() => i < messageList.length - 1,
sleep('messageTimeoutSecs', 1_000),
// Don't wait messageTimeoutSecs after the last message
// Wait one second instead
() => wait(defaultConfig.messageTimeoutSecs)
() => wait(defaultConfig.messageTimeoutSecs * 1_000)
)
),
({ detail: status }) => status !== Status.Connected
Expand Down

0 comments on commit 8ca7463

Please sign in to comment.