aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2017-10-26 16:34:15 +0200
committerIngela Anderton Andin <[email protected]>2017-10-26 16:46:57 +0200
commit05390c5a5a0b0657166d5c3c10e1a055cfe66e88 (patch)
tree6062b0f1b774fc822153d9fb915cba5d06883d66 /lib/inets/src
parent20af6471398302330073f9ee8325bc018e5959bf (diff)
downloadotp-05390c5a5a0b0657166d5c3c10e1a055cfe66e88.tar.gz
otp-05390c5a5a0b0657166d5c3c10e1a055cfe66e88.tar.bz2
otp-05390c5a5a0b0657166d5c3c10e1a055cfe66e88.zip
inets: Correct guard test
Guard test for error case was not updated to handle httpc stream concept properly.
Diffstat (limited to 'lib/inets/src')
-rw-r--r--lib/inets/src/http_client/httpc_handler.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inets/src/http_client/httpc_handler.erl b/lib/inets/src/http_client/httpc_handler.erl
index bd1d2e833a..6907bf5262 100644
--- a/lib/inets/src/http_client/httpc_handler.erl
+++ b/lib/inets/src/http_client/httpc_handler.erl
@@ -736,7 +736,7 @@ maybe_send_answer(Request, Answer, State) ->
answer_request(Request, Answer, State).
deliver_answer(#request{from = From} = Request)
- when is_pid(From) ->
+ when From =/= answer_sent ->
Response = httpc_response:error(Request, socket_closed_remotely),
httpc_response:send(From, Response);
deliver_answer(_Request) ->