summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2015-09-27 15:11:29 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2015-09-27 15:12:19 +0200
commit7644c9e8bdee7a5bf2e1475e16f00473e8696d1c (patch)
tree391b6d2b37d51007ac99ef95e06de0fc4c348f59 /src
parent0ee09fb109e106cc826382f150480c0f313bf83c (diff)
helpers: getDatabaseIterator: rethrow exception if connection wasn't closed
Diffstat (limited to 'src')
-rw-r--r--src/helpers.cpp2
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;
}