fix(leases): robustify lease coordinator shutdown

This commit is contained in:
bencvdb 2021-07-07 14:30:36 -07:00
parent 69077e1fe2
commit 71653df306

View file

@ -322,7 +322,7 @@ public class LeaseCoordinator<T extends Lease> {
* Requests the cancellation of the lease taker. * Requests the cancellation of the lease taker.
*/ */
public void stopLeaseTaker() { public void stopLeaseTaker() {
takerFuture.cancel(false); if (takerFuture != null) takerFuture.cancel(false);
} }