Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[sre] Rearrange the code of the dying stage in order to be consistant…
… with the expected agent state.

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed May 11, 2020
1 parent 702c2c0 commit a42cd75
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -371,18 +371,18 @@ final class AgentLife {
logger.kernelLogger.log(Level::SEVERE, e.localizedMessage, e)
return new ConcurrentLinkedDeque
} finally {
this.state = AgentState::DEAD
// Clear the references
dyingAgent.setSreSpecificData(null)
this.externalContextInstances = null
val wlock = this.lock.writeLock
wlock.lock
try {
this.defaultContextInstance = null
} finally {
wlock.unlock
}
this.externalContextInstances = null
this.agentInstance = null
this.state = AgentState::DEAD

}
}
Expand Down

0 comments on commit a42cd75

Please sign in to comment.