Skip to content

Commit

Permalink
we should await for clock to sync on connection
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardoventurini committed Oct 26, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent c198de0 commit 5178976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -113,7 +113,7 @@ export class Monti extends EventEmitter2 {
this._options.clockSyncInterval,
);

this._clock.sync();
await this._clock.sync();

this._initWebSocket();
}

0 comments on commit 5178976

Please sign in to comment.