Skip to content

Commit e095cca

Browse files
authored
fix returned handle when calling &tcpa on a tls listener (#772)
1 parent c6fc266 commit e095cca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/native.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,8 +888,8 @@ impl SysBackend for NativeSys {
888888
conn: parking_lot::Mutex::new(TslConnection::Server(conn)),
889889
},
890890
);
891+
return Ok(handle);
891892
}
892-
return Ok(handle);
893893
}
894894
#[allow(unreachable_code)]
895895
Err("Invalid tcp listener handle".to_string())

0 commit comments

Comments
 (0)