diff --git a/components/spotify/cspot/src/MercuryManager.cpp b/components/spotify/cspot/src/MercuryManager.cpp index 45c855aa..7514d4a0 100644 --- a/components/spotify/cspot/src/MercuryManager.cpp +++ b/components/spotify/cspot/src/MercuryManager.cpp @@ -9,7 +9,7 @@ std::map MercuryTypeMap({ {MercuryType::UNSUB, "UNSUB"}, }); -MercuryManager::MercuryManager(std::unique_ptr session): bell::Task("mercuryManager", 4 * 1024, +1, 1) +MercuryManager::MercuryManager(std::unique_ptr session): bell::Task("mercuryManager", 8 * 1024, +1, 1) { this->timeProvider = std::make_shared(); this->callbacks = std::map(); @@ -162,8 +162,8 @@ void MercuryManager::runTask() catch (const std::runtime_error& e) { // Reconnection required - this->reconnect(); - this->reconnectedCallback(); + if (isRunning) this->reconnect(); + if (isRunning) this->reconnectedCallback(); continue; } if (static_cast(packet->command) == MercuryType::PING) // @TODO: Handle time synchronization through ping