Respond with an error when client hasn't got a registered handle

This commit is contained in:
Antonio Scandurra 2022-12-23 11:53:13 +01:00
parent 42e74e7eef
commit 75803d8dbb
3 changed files with 33 additions and 0 deletions

View file

@ -1235,6 +1235,7 @@ impl Client {
subscriber
} else {
log::info!("unhandled message {}", type_name);
self.peer.respond_with_unhandled_message(message).log_err();
return;
};
@ -1278,6 +1279,7 @@ impl Client {
.detach();
} else {
log::info!("unhandled message {}", type_name);
self.peer.respond_with_unhandled_message(message).log_err();
}
}