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.Disconnect();
|
||||||
mpd.Connect();
|
mpd.Connect();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
throw;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user