Commit 8dcd8785 authored by Dominik Lohmann's avatar Dominik Lohmann

Fix segfault when setting an invalid credit policy

Fixes #1140
parent f6c5f84c
......@@ -78,9 +78,11 @@ public:
controller_ = detail::token_based_credit_controller::make(self(), in);
else if (*str == "size-based")
set_default();
else
else {
set_default();
CAF_LOG_WARNING("unrecognized credit policy:"
<< *str << "(falling back to 'size-based')");
}
} else {
set_default();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment