mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-01-03 05:48:42 +00:00
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:
parent
164ffbcab8
commit
a1972d57e3
1 changed files with 1 additions and 0 deletions
|
@ -59,6 +59,7 @@ defmodule Pleroma.LDAP do
|
|||
case connect() do
|
||||
{:ok, connection} ->
|
||||
:eldap.controlling_process(connection, self())
|
||||
Process.link(connection)
|
||||
[connection: connection]
|
||||
|
||||
_ ->
|
||||
|
|
Loading…
Reference in a new issue