aquatic_ws: wait for and quit on socket bind errors in workers

This commit is contained in:
Joakim Frostegård 2020-05-23 16:38:31 +02:00
parent 078a8c2868
commit a596ee155a
4 changed files with 46 additions and 3 deletions

View file

@ -126,4 +126,8 @@ impl OutMessageSender {
){
self.0[meta.worker_index].send((meta, message));
}
}
}
pub type SocketWorkerStatus = Option<Result<(), String>>;
pub type SocketWorkerStatuses = Arc<Mutex<Vec<SocketWorkerStatus>>>;