Have sqlite connection object be pointers to help make sure correct destruction pattern happens.

This commit is contained in:
Kevin Whitaker
2017-02-06 01:38:12 -05:00
parent 166443f9ad
commit 44df1cf607
2 changed files with 14 additions and 6 deletions

View File

@@ -54,8 +54,9 @@ private:
enum PlayerEvents {NOTHING, GROOVE_NOWPLAYING, VOTING_ENDED, VOTE_CAST, PLAYING_PAUSED, PLAYING_RESUMED, SKIP_REQUESTED, SKIP_VOTE_CAST, SKIP_VOTING_ENDED, ADMIN_FORCE_SKIP};
GroovePlayerMgr (std::string dbFile);
Wt::Dbo::backend::Sqlite3 sqliteConnection;
Wt::Dbo::FixedSqlConnectionPool connectionPool;
~GroovePlayerMgr();
Wt::Dbo::backend::Sqlite3* sqliteConnection;
Wt::Dbo::FixedSqlConnectionPool* connectionPool;
bool continueEventLoop = true;
std::list<AudioTrack> requestQueue;