4
0
mirror of https://github.com/QuasarApp/SoundBand.git synced 2025-05-02 01:59:34 +00:00

fix sync, timeout

This commit is contained in:
Andrei Yankovich 2018-08-16 20:58:59 +03:00
parent af6e29f784
commit 6a9d112239

@ -216,9 +216,7 @@ bool Sync::sync(const Syncer &sync){
// player->syncEnd(); // player->syncEnd();
// } ); // } );
while (ChronoTime::now() < sync.timeOn) { while (ChronoTime::now() < sync.timeOn) { }
std::this_thread::sleep_for(std::chrono::milliseconds(1));
}
player->setPosition(sync.seek); player->setPosition(sync.seek);
player->syncEnd(); player->syncEnd();