Skip to content

Commit df02683

Browse files
committed
Moving thigns
1 parent 3874907 commit df02683

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,6 @@ export class Client extends EventEmitter<Events> {
455455
// Make sure any currently playing audio is stopping
456456
this.audioContext.close();
457457
this.audioContext = new AudioContextClass();
458-
this.serverTimeDiff = 0;
459-
this.serverTimeDiffSamples = [];
460458
}
461459

462460
// Close the WebSocket connection and clean up resources.
@@ -471,6 +469,8 @@ export class Client extends EventEmitter<Events> {
471469
// Make sure any currently playing audio is stopping
472470
this._resetAudioContext();
473471

472+
this.serverTimeDiff = 0;
473+
this.serverTimeDiffSamples = [];
474474
this.serverInfo = null;
475475
}
476476
}

0 commit comments

Comments
 (0)