MyCryptoHQ/shepherd

Switching to auto mode while manual mode is still running crashes shepherd

HenryNguyen5 opened this issue · 0 comments

If you've experienced a bug, please provide the following information:

Description of the Issue

When switching to auto mode while manual mode is still resolving (and the manual mode requires a network switch), if the auto mode switch happens just after the network switch request is dispatched, the
state of shepherd might switch to online when it's supposed to stay offline for the duration of the network switch. If it does switch to online before the network switch is completed, then any provider call dispatch will then target a provider channel that no longer exists, causing the crash.

Steps to Reproduce

Test case 'should fail gracefully via call flush' in raceconditions.spec.ts