fix(leases): robustify lease coordinator shutdown
This commit is contained in:
parent
69077e1fe2
commit
71653df306
1 changed files with 1 additions and 1 deletions
|
|
@ -322,7 +322,7 @@ public class LeaseCoordinator<T extends Lease> {
|
|||
* Requests the cancellation of the lease taker.
|
||||
*/
|
||||
public void stopLeaseTaker() {
|
||||
takerFuture.cancel(false);
|
||||
if (takerFuture != null) takerFuture.cancel(false);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue