Fix a bug that crash when protocol is undefined
This commit is contained in:
parent
f26827a0b9
commit
5cfd8b74bc
|
@ -107,6 +107,8 @@ info(#protocol{proto_name = ProtoName,
|
||||||
|
|
||||||
info(proto_name, #protocol{proto_name = ProtoName}) ->
|
info(proto_name, #protocol{proto_name = ProtoName}) ->
|
||||||
ProtoName;
|
ProtoName;
|
||||||
|
info(proto_ver, undefined) ->
|
||||||
|
?MQTT_PROTO_V4;
|
||||||
info(proto_ver, #protocol{proto_ver = ProtoVer}) ->
|
info(proto_ver, #protocol{proto_ver = ProtoVer}) ->
|
||||||
ProtoVer;
|
ProtoVer;
|
||||||
info(clean_start, #protocol{clean_start = CleanStart}) ->
|
info(clean_start, #protocol{clean_start = CleanStart}) ->
|
||||||
|
|
Loading…
Reference in New Issue