receive_policy must provide an invalid_msg_do_what method

This commit is contained in:
2016-12-05 12:57:57 +01:00
parent e1f42bf31d
commit 3faabb1e4e
3 changed files with 14 additions and 2 deletions

View File

@ -171,6 +171,8 @@ namespace chat
receive_policy::logout_do_what
(chat_message(message::LOGOUT, content));
break;
default:
receive_policy::invalid_msg_do_what(msg);
}
for (auto& fun : _subscriptions) // notify subscribers