Merge pull request #732 from JohanLorenzo/update-listening-doc

docs(server): add a warning to Listening::close() in order to reflect #338
This commit is contained in:
Sean McArthur
2016-02-19 14:07:08 -08:00

View File

@@ -407,6 +407,9 @@ impl Drop for Listening {
}
impl Listening {
/// Warning: This function doesn't work. The server remains listening after you called
/// it. See https://github.com/hyperium/hyper/issues/338 for more details.
///
/// Stop the server from listening to its socket address.
pub fn close(&mut self) -> ::Result<()> {
let _ = self._guard.take();