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.
This commit is contained in:
Mark Felder 2024-09-17 13:19:54 -04:00
parent 164ffbcab8
commit a1972d57e3

View file

@ -59,6 +59,7 @@ defmodule Pleroma.LDAP do
case connect() do
{:ok, connection} ->
:eldap.controlling_process(connection, self())
Process.link(connection)
[connection: connection]
_ ->