#34 minor style change
This commit is contained in:
parent
87916dade6
commit
0cbd252ee4
@ -187,12 +187,9 @@ where
|
|||||||
IO: AsyncRead + AsyncWrite,
|
IO: AsyncRead + AsyncWrite,
|
||||||
{
|
{
|
||||||
fn shutdown(&mut self) -> Poll<(), io::Error> {
|
fn shutdown(&mut self) -> Poll<(), io::Error> {
|
||||||
match self.state {
|
if self.state.writeable() {
|
||||||
s if !s.writeable() => (),
|
self.session.send_close_notify();
|
||||||
_ => {
|
self.state.shutdown_write();
|
||||||
self.session.send_close_notify();
|
|
||||||
self.state.shutdown_write();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut stream = Stream::new(&mut self.io, &mut self.session);
|
let mut stream = Stream::new(&mut self.io, &mut self.session);
|
||||||
|
@ -121,12 +121,9 @@ where
|
|||||||
IO: AsyncRead + AsyncWrite,
|
IO: AsyncRead + AsyncWrite,
|
||||||
{
|
{
|
||||||
fn shutdown(&mut self) -> Poll<(), io::Error> {
|
fn shutdown(&mut self) -> Poll<(), io::Error> {
|
||||||
match self.state {
|
if self.state.writeable() {
|
||||||
s if !s.writeable() => (),
|
self.session.send_close_notify();
|
||||||
_ => {
|
self.state.shutdown_write();
|
||||||
self.session.send_close_notify();
|
|
||||||
self.state.shutdown_write();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut stream = Stream::new(&mut self.io, &mut self.session);
|
let mut stream = Stream::new(&mut self.io, &mut self.session);
|
||||||
|
Loading…
Reference in New Issue
Block a user