From 72c1f14aa618b4138c028852b12507c9b49db0ac Mon Sep 17 00:00:00 2001 From: Francisco Gindre Date: Tue, 26 Apr 2022 17:53:01 -0300 Subject: [PATCH] Issue #375 - User can't go twice in a row to SendFundsViewController --- .../ZcashLightClientSample/Send/SendViewController.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Example/ZcashLightClientSample/ZcashLightClientSample/Send/SendViewController.swift b/Example/ZcashLightClientSample/ZcashLightClientSample/Send/SendViewController.swift index e023b50f..38b6b43e 100644 --- a/Example/ZcashLightClientSample/ZcashLightClientSample/Send/SendViewController.swift +++ b/Example/ZcashLightClientSample/ZcashLightClientSample/Send/SendViewController.swift @@ -49,6 +49,13 @@ class SendViewController: UIViewController { fail(error) } } + + override func viewDidDisappear(_ animated: Bool) { + super.viewDidDisappear(animated) + + // swiftlint:disable:next force_try + try! synchronizer.stop() // Fail on purpose if this throws. + } @objc func viewTapped(_ recognizer: UITapGestureRecognizer) { let point = recognizer.location(in: self.view)