curl.lib.js icon indicating copy to clipboard operation
curl.lib.js copied to clipboard

_save is called incorrectly when search is interrupted

Open obany opened this issue 7 years ago • 0 comments

If you interrupt a PearlDiver search the code attempts to call the _save method, but is accesses it as an instance methods instead of passing the instance.

https://github.com/iotaledger/curl.lib.js/blob/2da1de36123d89b0c7dcababe24f72828bc5f794/src/pearldiver.js#L100

Should be if(instance.state == PDState.INTERRUPTED) return _save(instance, searchObject);

obany avatar Feb 09 '18 09:02 obany