comparison mod_component_client/mod_component_client.lua @ 1210:be5334e3f6ca

mod_component_client: Fix traceback when connection fails during module load
author Waqas Hussain <waqas20@gmail.com>
date Fri, 11 Oct 2013 17:36:59 -0400
parents fc39f78e2b36
children a234ad611633
comparison
equal deleted inserted replaced
1209:fc39f78e2b36 1210:be5334e3f6ca
231 local handler , conn = server.wrapclient ( conn , server_host , server_port , listener , "*l") 231 local handler , conn = server.wrapclient ( conn , server_host , server_port , listener , "*l")
232 __conn = conn; 232 __conn = conn;
233 ------------------------ 233 ------------------------
234 return true; 234 return true;
235 end 235 end
236 assert(connect()); 236 local s, err = connect();
237 237 if not s then
238 listener.ondisconnect(nil, err);
239 end
240