Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mtproto_proxy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mtproto_proxy
Commits
e9f999a1
Unverified
Commit
e9f999a1
authored
Jan 20, 2019
by
Сергей Прохоров
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop ranch listeners in 'prep_stop', not 'stop' application callback
parent
bf01459b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
mtproto_proxy_app.erl
src/mtproto_proxy_app.erl
+5
-2
No files found.
src/mtproto_proxy_app.erl
View file @
e9f999a1
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
-
behaviour
(
application
).
-
behaviour
(
application
).
%% Application callbacks
%% Application callbacks
-
export
([
start
/
2
,
stop
/
1
,
start_proxy
/
1
]).
-
export
([
start
/
2
,
prep_stop
/
1
,
stop
/
1
,
start_proxy
/
1
]).
-
define
(
APP
,
mtproto_proxy
).
-
define
(
APP
,
mtproto_proxy
).
%%====================================================================
%%====================================================================
...
@@ -23,8 +23,11 @@ start(_StartType, _StartArgs) ->
...
@@ -23,8 +23,11 @@ start(_StartType, _StartArgs) ->
Res
.
Res
.
%%--------------------------------------------------------------------
%%--------------------------------------------------------------------
stop
(_
State
)
->
prep_stop
(
State
)
->
[
stop_proxy
(
Where
)
||
Where
<-
application
:
get_env
(
?
APP
,
ports
,
[])],
[
stop_proxy
(
Where
)
||
Where
<-
application
:
get_env
(
?
APP
,
ports
,
[])],
State
.
stop
(_
State
)
->
ok
.
ok
.
%%====================================================================
%%====================================================================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment