summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/PluginImpl.hpp1
-rw-r--r--src/server/Task.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/server/PluginImpl.hpp b/src/server/PluginImpl.hpp
index 9728bf36..4f5c7eec 100644
--- a/src/server/PluginImpl.hpp
+++ b/src/server/PluginImpl.hpp
@@ -49,6 +49,7 @@ public:
const Raul::URI& uri)
: Resource(uris, uri)
, _type(type)
+ , _presets_loaded(false)
, _is_zombie(false)
{}
diff --git a/src/server/Task.cpp b/src/server/Task.cpp
index e15a4d4a..e19855d3 100644
--- a/src/server/Task.cpp
+++ b/src/server/Task.cpp
@@ -84,7 +84,7 @@ Task::get_task(RunContext& context)
while (true) {
// Push done end index as forward as possible
- for (; (*this)[_done_end].done(); ++_done_end) {}
+ for (; _done_end < size() && (*this)[_done_end].done(); ++_done_end) {}
if (_done_end >= size()) {
return NULL; // All child tasks are finished