Permalink
Browse files

added requirements in constructor of down_observer

  • Loading branch information...
Neverlord committed Aug 21, 2012
1 parent eb47120 commit 1d785335b7b464411ecc94b091d130b32ea6955e
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/local_actor.cpp
View
@@ -44,8 +44,9 @@ class down_observer : public attachable {
public:
down_observer(actor_ptr observer, actor_ptr observed)
- : m_observer(std::move(observer))
- , m_observed(std::move(observed)) {
+ : m_observer(std::move(observer)), m_observed(std::move(observed)) {
+ CPPA_REQUIRE(m_observer != nullptr);
+ CPPA_REQUIRE(m_observed != nullptr);
}
void actor_exited(std::uint32_t reason) {

0 comments on commit 1d78533

Please sign in to comment.