virtual-world-framework / vwf

Virtual World Framework
https://virtual.wf
Other
142 stars 53 forks source link

don't create new watchers at every reload of a file #438

Closed rchadwic closed 9 years ago

rchadwic commented 9 years ago

Each time a file is changed on disk, it is removed from the file-cache object. However, the watcher is not canceled. Next time the file is requested, a new watcher will be created. If the file is again modified, then served, you end up with three. These file system watchers need to be canceled when the file changes, and a new one created only when the file is reloaded as it is served.