@synchronized
will automatically take down its exception-handling context when you return, and relinquish the lock. So the code you've written is fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With