public void start()
{
for(int i = 0; i < this.monitors.length ; i++) {
- this.monitor(this.top[i], ( fm, f_orig, of_orig, event_type) => {
+ this.monitor(this.top.index(i), ( fm, f_orig, of_orig, event_type) => {
this.onEvent (fm, f_orig, of_orig, event_type ) ;
} );
}
{
for(int i = 0; i < this.monitors.length ; i++) {
- this.monitors[i].cancel();
+ this.monitors.index(i).cancel();
}
this.monitors = new Array<FileMonitor>(); // clean /destroy/ kill old?
}