NetworkController.lookupNetwork
throws if messenger is cleared midway through
#5115
Labels
NetworkController.lookupNetwork
throws if messenger is cleared midway through
#5115
Within a client, if all of the subscriptions on the global messenger are cleared while
lookupNetwork
on the NetworkController is being called, it can cause the messenger to throw an error whenlookupNetwork
attempts to unsubscribe from theNetworkController:networkDidChange
event. This happens in Mobile when destroying the engine. We should account for this.Also see: MetaMask/metamask-mobile#12765
The text was updated successfully, but these errors were encountered: