Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Use clear method #19
Browse files Browse the repository at this point in the history
  • Loading branch information
tdauth committed Apr 10, 2019
1 parent 5bfbc10 commit 75baf13
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class GuiStateMachineApiNeo4J extends GuiStateMachineApi {

override def removeStateMachine(name: String): Boolean = stateMachines.remove(name) match {
case Some(stateMachine) =>
stateMachine.session.purgeDatabase()
stateMachine.clear()
val uri = getUri(name)
Neo4jSessionFactory.getSessionFactory(uri).close()
true
Expand Down

0 comments on commit 75baf13

Please sign in to comment.