]> granicus.if.org Git - ejabberd/commitdiff
Fix bug that forgot listener options when using R12 or older.
authorBadlop <badlop@process-one.net>
Fri, 6 Nov 2009 18:24:54 +0000 (18:24 +0000)
committerBadlop <badlop@process-one.net>
Fri, 6 Nov 2009 18:24:54 +0000 (18:24 +0000)
SVN Revision: 2734

src/ejabberd_listener.erl

index bfed0e336cddf402bf09236f819c46bc3f1a2c8b..5d0a55c98dfda46e10cda9099bf981ad4f02063e 100644 (file)
@@ -129,7 +129,7 @@ init_udp(PortIP, Module, Opts, SockOpts, Port, IPS) ->
 init_tcp(PortIP, Module, Opts, SockOpts, Port, IPS) ->
     SockOpts2 = case erlang:system_info(otp_release) >= "R13B" of
        true -> [{send_timeout_close, true} | SockOpts];
-       false -> []
+       false -> SockOpts
     end,
     Res = gen_tcp:listen(Port, [binary,
                                {packet, 0},