Autotest crash fix.
This commit is contained in:
		
							parent
							
								
									a3d4c8dbc3
								
							
						
					
					
						commit
						5f3f2d4f4d
					
				| @ -108,9 +108,12 @@ int uman_init(struct hub_info* hub) | |||||||
| 	hub->users = users; | 	hub->users = users; | ||||||
| 
 | 
 | ||||||
| #ifdef USERMANAGER_TIMER | #ifdef USERMANAGER_TIMER | ||||||
| 	evtimer_set(&hub->ev_timer, timer_statistics, hub); | 	if (hub->evbase) | ||||||
| 	event_base_set(hub->evbase, &hub->ev_timer); | 	{ | ||||||
| 	evtimer_add(&hub->ev_timer, &timeout); | 		evtimer_set(&hub->ev_timer, timer_statistics, hub); | ||||||
|  | 		event_base_set(hub->evbase, &hub->ev_timer); | ||||||
|  | 		evtimer_add(&hub->ev_timer, &timeout); | ||||||
|  | 	} | ||||||
| #endif // 0
 | #endif // 0
 | ||||||
| 	return 0; | 	return 0; | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user