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); |