OpenAPI: remove accidentally pasted buffer data
[akkoma] / lib / pleroma / gun / connection_pool.ex
index d3eead7d8be841b0dc15e9640404b022bdfe1f92..8b41a668c0268c504ec55ddc05bbb7545aedcffe 100644 (file)
@@ -53,7 +53,10 @@ defmodule Pleroma.Gun.ConnectionPool do
         {:ok, pid}
 
       {:DOWN, ^ref, :process, ^worker_pid, reason} ->
-        {:error, reason}
+        case reason do
+          {:shutdown, error} -> error
+          _ -> {:error, reason}
+        end
     end
   end