mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-02-23 15:49:54 +01:00
Only join reader thread if tcp stream shutdown succeeded.
This commit is contained in:
@@ -457,8 +457,9 @@ impl<Request, Reply> Drop for Client<Request, Reply>
|
||||
.stream
|
||||
.shutdown(::std::net::Shutdown::Both) {
|
||||
warn!("Client: couldn't shutdown reader thread: {:?}", e);
|
||||
} else {
|
||||
self.reader_guard.take().unwrap().join().unwrap();
|
||||
}
|
||||
self.reader_guard.take().unwrap().join().unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user