logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: a1972d57e30f41e5173d61c0d0936685738c560d
parent 164ffbcab822eda4c28f912082b6a7a3ec64a7e5
Author: Mark Felder <feld@feld.me>
Date:   Tue, 17 Sep 2024 13:19:54 -0400

Link the eldap connection process

Ensure if LDAP GenServer crashes it gets cleaned up, and we should crash and restart if somehow the eldap connection process crashes unexpectedly as we can't seem to receive any DOWN messages from it, etc.

Diffstat:

Mlib/pleroma/ldap.ex1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/lib/pleroma/ldap.ex b/lib/pleroma/ldap.ex @@ -59,6 +59,7 @@ defmodule Pleroma.LDAP do case connect() do {:ok, connection} -> :eldap.controlling_process(connection, self()) + Process.link(connection) [connection: connection] _ ->