Removed obsolete warnings
This commit is contained in:
parent
d431854421
commit
81bb86d0ed
@ -313,7 +313,7 @@ impl<Message> IoService<Message> where Message: Send + Sync + Clone + 'static {
|
||||
impl<Message> Drop for IoService<Message> where Message: Send + Sync + Clone {
|
||||
fn drop(&mut self) {
|
||||
self.host_channel.send(IoMessage::Shutdown).unwrap();
|
||||
self.thread.take().unwrap().join().unwrap();
|
||||
self.thread.take().unwrap().join().ok();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -99,6 +99,6 @@ impl Drop for Worker {
|
||||
self.deleting.store(true, AtomicOrdering::Relaxed);
|
||||
self.wait.notify_all();
|
||||
let thread = mem::replace(&mut self.thread, None).unwrap();
|
||||
thread.join().unwrap();
|
||||
thread.join().ok();
|
||||
}
|
||||
}
|
||||
|
@ -438,7 +438,7 @@ impl<Message> Host<Message> where Message: Send + Sync + Clone {
|
||||
io.update_registration(token).unwrap_or_else(|e| debug!(target: "net", "Session registration error: {:?}", e));
|
||||
}
|
||||
}
|
||||
} else { warn!(target: "net", "Received event for unknown connection") }
|
||||
}
|
||||
if kill {
|
||||
self.kill_connection(token, io); //TODO: mark connection as dead an check in kill_connection
|
||||
return;
|
||||
@ -498,9 +498,7 @@ impl<Message> Host<Message> where Message: Send + Sync + Clone {
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
warn!(target: "net", "Received event for unknown connection");
|
||||
}
|
||||
}
|
||||
if kill {
|
||||
self.kill_connection(token, io); //TODO: mark connection as dead an check in kill_connection
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user