mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-19 05:55:34 +09:00
[skip ci] fix: startup issues in gateway
This commit is contained in:
2 files changed
+10
-2
No files matched your search
@@ -67,7 +67,7 @@ handle_presence_connect(Attempt, State) ->
|
||||
group_dm_recipients => GroupDmRecipients,
|
||||
custom_status => maps:get(custom_status, State, null)
|
||||
}},
|
||||
case gen_server:call(presence_manager, Message, 5000) of
|
||||
try gen_server:call(presence_manager, Message, 5000) of
|
||||
{ok, Pid} ->
|
||||
try_presence_session_connect(
|
||||
Pid,
|
||||
@@ -83,6 +83,13 @@ handle_presence_connect(Attempt, State) ->
|
||||
);
|
||||
_ ->
|
||||
schedule_presence_retry(Attempt, State)
|
||||
catch
|
||||
exit:{noproc, _} ->
|
||||
schedule_presence_retry(Attempt, State);
|
||||
exit:{normal, _} ->
|
||||
schedule_presence_retry(Attempt, State);
|
||||
_:_ ->
|
||||
schedule_presence_retry(Attempt, State)
|
||||
end.
|
||||
|
||||
-spec try_presence_session_connect(
|
||||
|
||||
Reference in new issue
Block a user