diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2015-09-27 15:11:29 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2015-09-27 15:12:19 +0200 |
commit | 7644c9e8bdee7a5bf2e1475e16f00473e8696d1c (patch) | |
tree | 391b6d2b37d51007ac99ef95e06de0fc4c348f59 /src | |
parent | 0ee09fb109e106cc826382f150480c0f313bf83c (diff) |
helpers: getDatabaseIterator: rethrow exception if connection wasn't closed
Diffstat (limited to 'src')
-rw-r--r-- | src/helpers.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/helpers.cpp b/src/helpers.cpp index a366b283..adf25524 100644 --- a/src/helpers.cpp +++ b/src/helpers.cpp @@ -57,6 +57,8 @@ MPD::SongIterator getDatabaseIterator(MPD::Connection &mpd) mpd.Disconnect(); mpd.Connect(); } + else + throw; } return result; } |