Fixes a case where `callback` was called twice when something went wrong in the `cp` operation, leading to a `java.lang.RuntimeException: Illegal callback invocation from native module. This callback type only permits a single invocation from native code.` This is the same fix [as seen in the original repo](https://github.com/wkh237/react-native-fetch-blob/pull/408).
|
|
||
548 |
|
548 |
|
549 |
|
549 |
|
550 |
|
550 |
|
|
551 |
|
|
551 |
|
552 |
|
552 |
|
553 |
|
553 |
|
554 |
|
|
|
||
571 |
|
572 |
|
572 |
|
573 |
|
573 |
|
574 |
|
574 |
|
|
|
|
575 |
|
|
575 |
|
576 |
|
576 |
|
577 |
|
577 |
|
578 |
|
|
|
||
580 |
|
581 |
|
581 |
|
582 |
|
582 |
|
583 |
|
583 |
|
|
|
584 |
|
584 |
|
585 |
|
|
|
|
585 |
|
|
586 |
|
586 |
|
587 |
|
587 |
|
|
588 |
|
|
|
589 |
|
|
|
590 |
|
|
|
591 |
|
|
|
592 |
|
|
|
593 |
|
|
|
594 |
|
|
588 |
|
595 |
|
589 |
|
596 |
|
590 |
|
597 |
|