helpers: getDatabaseIterator: rethrow exception if connection wasn't closed

This commit is contained in:
Andrzej Rybczak
2015-09-27 15:11:29 +02:00
parent 0ee09fb109
commit 7644c9e8bd

View File

@@ -57,6 +57,8 @@ MPD::SongIterator getDatabaseIterator(MPD::Connection &mpd)
mpd.Disconnect();
mpd.Connect();
}
else
throw;
}
return result;
}