output: delay reopen after device failure
When one of several output devices failed, MPD tried to reopen it quite often, wasting a lot of resources. This patch adds a delay: wait 10 seconds before retrying. This might be changed to exponential delays later, but for now, it makes the problem go away.
This commit is contained in:
@@ -87,6 +87,7 @@ int audio_output_init(struct audio_output *ao, ConfigParam * param)
|
||||
ao->plugin = plugin;
|
||||
ao->enabled = true;
|
||||
ao->open = false;
|
||||
ao->reopen_after = 0;
|
||||
|
||||
ao->convBuffer = NULL;
|
||||
ao->convBufferLen = 0;
|
||||
|
Reference in New Issue
Block a user