Fix function clause
This commit is contained in:
parent
6352f9e2dc
commit
970d243d94
|
@ -119,6 +119,8 @@ info(username, #protocol{username = Username}) ->
|
||||||
Username;
|
Username;
|
||||||
info(will_msg, #protocol{will_msg = WillMsg}) ->
|
info(will_msg, #protocol{will_msg = WillMsg}) ->
|
||||||
WillMsg;
|
WillMsg;
|
||||||
|
info(will_delay_interval, #protocol{will_msg = undefined}) ->
|
||||||
|
0;
|
||||||
info(will_delay_interval, #protocol{will_msg = WillMsg}) ->
|
info(will_delay_interval, #protocol{will_msg = WillMsg}) ->
|
||||||
emqx_message:get_header('Will-Delay-Interval', WillMsg, 0);
|
emqx_message:get_header('Will-Delay-Interval', WillMsg, 0);
|
||||||
info(conn_props, #protocol{conn_props = ConnProps}) ->
|
info(conn_props, #protocol{conn_props = ConnProps}) ->
|
||||||
|
|
Loading…
Reference in New Issue