Commits

Oscar Hellström committed 2bf9935

Fix issue with trying to give back closed socket to manager.

Comments (0)

Files changed (1)

src/lhttpc_client.erl

             read_until_closed(Socket, NewAcc, Ssl);
         {error, closed} ->
             lhttpc_sock:close(Socket, Ssl),
-            {ok, Acc};
+            {ok, Acc, undefined}; % The socket has been closed
         Other ->
             Other
     end.