=clu #17712 Guard against readView not created
* readView might be null if Cluster init fails before it is created, i.e. shutdown is called from constructor
This commit is contained in:
parent
70403446ce
commit
4bf262a137
1 changed files with 5 additions and 2 deletions
|
|
@ -362,6 +362,9 @@ class Cluster(val system: ExtendedActorSystem) extends Extension {
|
|||
logInfo("Shutting down...")
|
||||
|
||||
system.stop(clusterDaemons)
|
||||
|
||||
// readView might be null if init fails before it is created
|
||||
if (readView != null)
|
||||
readView.close()
|
||||
|
||||
closeScheduler()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue