aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_default_event_h.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-05-13 13:18:01 +0200
committerLoïc Hoguin <[email protected]>2019-05-13 13:18:01 +0200
commit3aa7168404e62f9ea9e290380b93569eff4372a8 (patch)
treeab8cb6f89c2e5e3abb5cb27d34b9b902b427625f /src/gun_default_event_h.erl
parentcfd702a716f834c431abd46532e8cfa4debd1468 (diff)
downloadgun-3aa7168404e62f9ea9e290380b93569eff4372a8.tar.gz
gun-3aa7168404e62f9ea9e290380b93569eff4372a8.tar.bz2
gun-3aa7168404e62f9ea9e290380b93569eff4372a8.zip
Add the disconnect event callback
Diffstat (limited to 'src/gun_default_event_h.erl')
-rw-r--r--src/gun_default_event_h.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gun_default_event_h.erl b/src/gun_default_event_h.erl
index e242e84..f234dda 100644
--- a/src/gun_default_event_h.erl
+++ b/src/gun_default_event_h.erl
@@ -18,6 +18,7 @@
-export([init/2]).
-export([connect_start/2]).
-export([connect_end/2]).
+-export([disconnect/2]).
init(_EventData, State) ->
State.
@@ -27,3 +28,6 @@ connect_start(_EventData, State) ->
connect_end(_EventData, State) ->
State.
+
+disconnect(_EventData, State) ->
+ State.