Comparison

init.lua @ 59:829a0a495dd1

verse: Remove some useless comments
author Matthew Wild <mwild1@gmail.com>
date Tue, 11 May 2010 22:09:44 +0100
parent 55:163beb198646
child 60:1f47ddab3499
comparison
equal deleted inserted replaced
58:f9d025fde8dc 59:829a0a495dd1
50 if not success and err ~= "timeout" then 50 if not success and err ~= "timeout" then
51 self:warn("connect() to %s:%d failed: %s", connect_host, connect_port, err); 51 self:warn("connect() to %s:%d failed: %s", connect_host, connect_port, err);
52 return false, err; 52 return false, err;
53 end 53 end
54 54
55 --local conn, err = server.addclient(self.connect_host or self.host, tonumber(self.connect_port) or 5222, new_listener(self), "*a"); 55 local conn = server.wrapclient(conn, connect_host, connect_port, new_listener(self), "*a");
56 local conn = server.wrapclient(conn, connect_host, connect_port, new_listener(self), "*a"); --, hosts[from_host].ssl_ctx, false );
57 if not conn then 56 if not conn then
58 return nil, err; 57 return nil, err;
59 end 58 end
60 59
61 self.conn = conn; 60 self.conn = conn;