Skip to content

Commit

Permalink
Doesn't release port when application is shutdown - fixes #14
Browse files Browse the repository at this point in the history
  • Loading branch information
shakyShane committed Oct 11, 2018
1 parent 114e816 commit 9f43b9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ fn run_with_opts(opts: ProgramOptions) -> Result<(), ProgramStartError> {
ProxyScheme::Https => s.bind_ssl(&local_addr, get_ssl_builder()),
};

s.expect("Couldn't start the application").start();
s.expect("Couldn't start the application")
.shutdown_timeout(0)
.start();

println!("Started server: {}://{}", server_opts.scheme, local_addr);

Expand Down

0 comments on commit 9f43b9f

Please sign in to comment.