Fix machinegun timer marshaling (#14)

The timeout can be not only pos integer in machiengun protocol.
This commit is contained in:
Andrey Fadeev 2019-07-17 12:51:45 +03:00 committed by GitHub
parent b54b396f63
commit ec7968f1f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -325,7 +325,7 @@ marshal(action, V) when is_list(V) ->
marshal(action, V) ->
marshal(action, [V]);
marshal(timer, {timeout, V}) when V > 0 ->
marshal(timer, {timeout, V}) ->
{timeout, marshal(integer, V)};
marshal(timer, {deadline, V}) ->