Fix function clause

This commit is contained in:
zhouzb 2019-08-23 15:21:20 +08:00
parent 6352f9e2dc
commit 970d243d94
1 changed files with 2 additions and 0 deletions

View File

@ -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}) ->