db/proxy: make connect errors during startup non-fatal
This commit is contained in:
1
NEWS
1
NEWS
@@ -3,6 +3,7 @@ ver 0.20.3 (not yet released)
|
|||||||
- "playlistadd" creates new playlist if it does not exist, as documented
|
- "playlistadd" creates new playlist if it does not exist, as documented
|
||||||
* database
|
* database
|
||||||
- proxy: fix error "terminate called after throwing ..."
|
- proxy: fix error "terminate called after throwing ..."
|
||||||
|
- proxy: make connect errors during startup non-fatal
|
||||||
* replay gain: don't reset ReplayGain levels when unpausing playback
|
* replay gain: don't reset ReplayGain levels when unpausing playback
|
||||||
* silence surround channels when converting from stereo
|
* silence surround channels when converting from stereo
|
||||||
* use shortcuts such as "dsd64" in log messages
|
* use shortcuts such as "dsd64" in log messages
|
||||||
|
@@ -346,9 +346,15 @@ ProxyDatabase::Create(EventLoop &loop, DatabaseListener &listener,
|
|||||||
void
|
void
|
||||||
ProxyDatabase::Open()
|
ProxyDatabase::Open()
|
||||||
{
|
{
|
||||||
Connect();
|
|
||||||
|
|
||||||
update_stamp = 0;
|
update_stamp = 0;
|
||||||
|
|
||||||
|
try {
|
||||||
|
Connect();
|
||||||
|
} catch (const std::runtime_error &error) {
|
||||||
|
/* this error is non-fatal, because this plugin will
|
||||||
|
attempt to reconnect again automatically */
|
||||||
|
LogError(error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user