mirror of
https://github.com/QuasarApp/SoundBand.git
synced 2025-04-26 15:24:31 +00:00
fix sync, timeout
This commit is contained in:
parent
af6e29f784
commit
6a9d112239
@ -216,9 +216,7 @@ bool Sync::sync(const Syncer &sync){
|
||||
// player->syncEnd();
|
||||
// } );
|
||||
|
||||
while (ChronoTime::now() < sync.timeOn) {
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||
}
|
||||
while (ChronoTime::now() < sync.timeOn) { }
|
||||
player->setPosition(sync.seek);
|
||||
player->syncEnd();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user