rem: if (presentity->watchers == 0 && presentity->winfo_watchers==0) {
add: if ( (presentity->watchers == 0) && (presentity->winfo_watchers==0) && (presentity->tuples == 0)) {
context: int timer_pdomain(pdomain_t* _d){	struct presentity* presentity, *t;	lock_pdomain(_d);	presentity = _d->first;	if (0) LOG(L_ERR, "timer_pdomain: _d=%s d->first=%p\n", _d->name->s, presentity);	while(presentity) {		if (timer_presentity(presentity) < 0) {			LOG(L_ERR, "timer_pdomain(): Error in timer_pdomain\n");			unlock_pdomain(_d);			return -1;		}				     /* Remove the entire record		      * if it is empty		      */		if (presentity->watchers == 0 && presentity->winfo_watchers==0) {			t = presentity;			presentity = presentity->next;			remove_presentity(_d, t);			free_presentity(t);		} else {			presentity = presentity->next;		}	}		unlock_pdomain(_d);	return 0;}