sboesen / remotely-sync

fork of remotely-save with security upgrades
Apache License 2.0
180 stars 8 forks source link

Fix Sync on Remote running multiple times #96

Closed kadisonm closed 6 months ago

kadisonm commented 6 months ago

Fixes multiple Sync on Remotes from running by making sure only one can run. Previously if the plugin unloaded correctly multiple could run.

Potentially stop Sync on Remote from running twice.

kadisonm commented 6 months ago

For more context. While developing whenever the build would finish and hot-reload would reload the plugin, the previous intervals would still be running. At some point I had 5 printing to the console at the same time.

I'm no longer able to reproduce this issue unless I comment out the window.clearInterval. So I believe it works.

sboesen commented 6 months ago

Looks good, merged!