From 9f1c3a589999794bc5f43f336e1a62a2647b88a4 Mon Sep 17 00:00:00 2001 From: Feng Lee Date: Wed, 6 Dec 2017 14:42:26 +0800 Subject: [PATCH] Compatible with esockd 4.x --- src/emqttd_client.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/emqttd_client.erl b/src/emqttd_client.erl index 63bac7c8d..5ca450bf5 100644 --- a/src/emqttd_client.erl +++ b/src/emqttd_client.erl @@ -141,6 +141,7 @@ send_fun(Conn, Peername) -> emqttd_metrics:inc('bytes/sent', iolist_size(Data)), try Conn:async_send(Data) of ok -> ok; + true -> ok; %% Compatible with esockd 4.x {error, Reason} -> Self ! {shutdown, Reason} catch error:Error -> Self ! {shutdown, Error}