ShipStation Sync - how to prevent separate users firing it
Posted: Mon Nov 27, 2017 7:53 am
I don't see anything that prevents the ShipStation Sync from being fired multiple times by separate users.
The postback timer is disabled initially, so the panels showing that a sync is in progress won't update until the Sync button is pressed. And the Sync button (or the thread routine) never does a check to see if the Sync is already running.
Seems like it would be more safety-friendly to have the timer enabled by default. That way, anyone loading the page will know (within 5 seconds) if a sync is currently in progress. Since the sync button is hidden during the timer postback event, this would also prevent a separate user from firing the sync routine again.
Am I missing something?
The postback timer is disabled initially, so the panels showing that a sync is in progress won't update until the Sync button is pressed. And the Sync button (or the thread routine) never does a check to see if the Sync is already running.
Seems like it would be more safety-friendly to have the timer enabled by default. That way, anyone loading the page will know (within 5 seconds) if a sync is currently in progress. Since the sync button is hidden during the timer postback event, this would also prevent a separate user from firing the sync routine again.
Am I missing something?