Fixing two errores with networking

This commit is contained in:
Johannes Wendel
2019-10-28 16:38:33 +01:00
parent fa152c6c54
commit 8791f85857
5 changed files with 21 additions and 8 deletions

View File

@@ -29,7 +29,8 @@ Sound::Sound(std::shared_ptr<SoundBoardPinController> pin_controller, const uint
void Sound::play()
{
CLOG(INFO, OUTPUT_LOGGER) << "Play Sound " << id << " " << name;
this->play_task = std::async(std::launch::async, &Sound::playTask, this);
//this->play_task = std::async(std::launch::async, &Sound::playTask, this);
this->playTask();
}
void Sound::playTask()