helpers: getDatabaseIterator: rethrow exception if connection wasn't closed
This commit is contained in:
@@ -57,6 +57,8 @@ MPD::SongIterator getDatabaseIterator(MPD::Connection &mpd)
|
||||
mpd.Disconnect();
|
||||
mpd.Connect();
|
||||
}
|
||||
else
|
||||
throw;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user