diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gun_tls_proxy.erl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gun_tls_proxy.erl b/src/gun_tls_proxy.erl index d0558b2..3978822 100644 --- a/src/gun_tls_proxy.erl +++ b/src/gun_tls_proxy.erl @@ -252,7 +252,7 @@ not_connected(cast, Msg={connect_proc, Error}, State=#state{owner_pid=OwnerPid, OwnerPid ! {?MODULE, self(), Error, Extra}, %% We unlink from the owner process to avoid taking it down with us. unlink(OwnerPid), - {stop, Error, State}; + {stop, {shutdown, Error}, State}; not_connected(Type, Event, State) -> handle_common(Type, Event, State). @@ -312,8 +312,6 @@ handle_common(cast, Msg={set_owner, OwnerPid}, State) -> {keep_state, State#state{owner_pid=OwnerPid}}; handle_common(cast, Msg={cb_controlling_process, ProxyPid}, State) -> ?DEBUG_LOG("msg ~0p state ~0p", [Msg, State]), - %% We link so that the ssl process terminates when we do. - link(ProxyPid), {keep_state, State#state{proxy_pid=ProxyPid}}; handle_common(cast, Msg={setopts, Opts}, State) -> ?DEBUG_LOG("msg ~0p state ~0p", [Msg, State]), |