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