Commit working draft, for perms.

This commit is contained in:
Paul Makles
2020-04-08 13:22:07 +01:00
parent da95f6247d
commit b21a6f2231
5 changed files with 20 additions and 14 deletions

View File

@@ -172,7 +172,7 @@ pub fn send_message(id: String, message: String) -> std::result::Result<(), ()>
let arr = map.get(&id).unwrap();
for item in arr {
if let Err(_) = item.out.send(message.clone()) {
if item.out.send(message.clone()).is_err() {
return Err(());
}
}