helpers: getDatabaseIterator: rethrow exception if connection wasn't closed
This commit is contained in:
1 parent
0ee09fb109
commit
7644c9e8bd
1 file changed
+2
@@ -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