Track position update was sometimes not sent on first track.

This commit is contained in:
Andreas 2013-05-27 16:08:35 +02:00
parent cc1d4e199d
commit bcaeac7a02
1 changed files with 5 additions and 0 deletions

View File

@ -44,6 +44,11 @@ void OutgoingDataCreator::SetClients(QList<RemoteClient*>* clients) {
// After we got some clients, start the keep alive timer
// Default: every 10 seconds
keep_alive_timer_->start(keep_alive_timeout_);
// Check if we need to start the track position timer
if (app_->player()->engine()->state() == Engine::Playing) {
track_position_timer_->start(1000);
}
}
void OutgoingDataCreator::SendDataToClients(pb::remote::Message* msg) {