Commit 9826298b authored by Dominik Charousset's avatar Dominik Charousset

Merge pull request #1141

parents 7ad30c1c 8dcd8785
...@@ -14,6 +14,10 @@ is based on [Keep a Changelog](https://keepachangelog.com). ...@@ -14,6 +14,10 @@ is based on [Keep a Changelog](https://keepachangelog.com).
- When using `CAF_MAIN`, CAF now looks for the correct default config file name, - When using `CAF_MAIN`, CAF now looks for the correct default config file name,
i.e., `caf-application.conf`. i.e., `caf-application.conf`.
### Fixed
- Setting an invalid credit policy no longer results in a segfault (#1140).
## [0.18.0-rc.1] - 2020-09-09 ## [0.18.0-rc.1] - 2020-09-09
### Added ### Added
......
...@@ -78,9 +78,11 @@ public: ...@@ -78,9 +78,11 @@ public:
controller_ = detail::token_based_credit_controller::make(self(), in); controller_ = detail::token_based_credit_controller::make(self(), in);
else if (*str == "size-based") else if (*str == "size-based")
set_default(); set_default();
else else {
set_default();
CAF_LOG_WARNING("unrecognized credit policy:" CAF_LOG_WARNING("unrecognized credit policy:"
<< *str << "(falling back to 'size-based')"); << *str << "(falling back to 'size-based')");
}
} else { } else {
set_default(); 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