Revision f7a60114

View differences:

net_helper-ml.c
297 297
struct nodeID *net_helper_init(const char *IPaddr, int port) {
298 298

  
299 299
	struct timeval tout = {1, 0};
300
	int s;
300 301
	base = event_base_new();
301 302

  
302 303
	me = malloc(sizeof(nodeID));
......
321 322

  
322 323
	mlRegisterErrorConnectionCb(&connError_cb);
323 324
	mlRegisterRecvConnectionCb(&receive_conn_cb);
324
	mlInit(1,tout,port,IPaddr,3478,"stun.ekiga.net",&init_myNodeID_cb,base);
325
	s = mlInit(1,tout,port,IPaddr,3478,"stun.ekiga.net",&init_myNodeID_cb,base);
326
	if (s < 0) {
327
		fprintf(stderr, "Net-helper : error initializing ML!\n");
328
		free(me);
329
		return NULL;
330
	}
331

  
325 332
	while (me->connID<-1) {
326 333
	//	event_base_once(base,-1, EV_TIMEOUT, &t_out_cb, NULL, &tout);
327 334
		event_base_loop(base,EVLOOP_ONCE);

Also available in: Unified diff