chezinut / as3corelib

Automatically exported from code.google.com/p/as3corelib
0 stars 0 forks source link

After unwatch a file in the FileMonitor the watch doesn't work any more #108

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Watch a file with FileMonitor 
2. Delete or Move the file
3. The FileMonitor performs a unwatch
4. Paste again the file in the watching url

What is the expected output? What do you see instead?

FileMonitor should dispatch a File Create event, but instead nothing happens

Please use labels and text to provide additional information.

This happens because in the unwatch function the timer is not set to null,
so when the watch method is called again it doesn't adds the timer's
listener because the timer is not null and doesn't enter in the if where
the timer listener is set....

it's easily solved just by setting the timer to null in the unwatch method   

Original issue reported on code.google.com by gustavos...@gmail.com on 12 Jun 2009 at 10:13

GoogleCodeExporter commented 9 years ago

Original comment by mikechambers on 21 Sep 2009 at 4:46