Respond with an error when client hasn't got a registered handle
This commit is contained in:
parent
42e74e7eef
commit
75803d8dbb
3 changed files with 33 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue