src/server/daemon/event_bsd.c

changeset 537
ad44e72fbf50
parent 531
9b15b1f72bef
child 538
f9a7b5c76208
equal deleted inserted replaced
536:e95fa761db0c 537:ad44e72fbf50
141 } 141 }
142 } 142 }
143 // call event finish handlers 143 // call event finish handlers
144 for(int i=0;i<numfinished;i++) { 144 for(int i=0;i<numfinished;i++) {
145 Event *event = finished[i]; 145 Event *event = finished[i];
146 finished[i]->finish(ev, event); 146 // check again if the finish callback is set
147 if(finished[i]->finish) {
148 finished[i]->finish(ev, event);
149 }
147 } 150 }
148 // execute return calls 151 // execute return calls
149 for(int i=0;i<ev->numret;i++) { 152 for(int i=0;i<ev->numret;i++) {
150 EVReturn ret = ev->fnreturn[i]; 153 EVReturn ret = ev->fnreturn[i];
151 nsapi_saf_return(ret.sn, ret.rq, ret.ret); 154 nsapi_saf_return(ret.sn, ret.rq, ret.ret);

mercurial