appnexus / sicksync

Don’t accept the available as the preferable. Go the extra mile with extra speed.
Apache License 2.0
68 stars 11 forks source link

Prevent duplicate listeners on the file watcher #29

Closed krishoyt closed 9 years ago

krishoyt commented 9 years ago

startFileWatch() is called every time a connection is lost and then re-established. Each time it was adding another set of listeners and then pushing the same files multiple times.

chrisdopuch commented 9 years ago

Looks good to me @joelgriffith any feedback from you before we merge this in? We'll need to bump the minor version and publish to npm