fix(satp): shutdown of SATP gateway should assure there are no pending transfers before shutting down #3756
Labels
bug
Something isn't working
IETF-SATP-Hermes
Related to the Secure Asset Transfer Protocol as defined by the Internet Engineering Task Force.
Describe the bug
The shutdown code at https://github.com/hyperledger-cacti/cacti/blob/satp-dev/packages/cactus-plugin-satp-hermes/src/main/typescript/plugin-satp-hermes-gateway.ts#L585 does not clean up existing sessions. It should wait that all transfers are resolved prior to shutdown.
To Reproduce
NA
Expected behavior
A call to gateway.shutdown() should wait for all pending sessions to counterparty gateways to be resolved.
NA
The text was updated successfully, but these errors were encountered: