|
@@ -70,7 +70,7 @@ abstract class InteractiveWebSession(val id: Int, createInteractiveRequest: Crea
|
|
|
override def state: State = _state
|
|
override def state: State = _state
|
|
|
|
|
|
|
|
override def executeStatement(content: ExecuteRequest): Statement = {
|
|
override def executeStatement(content: ExecuteRequest): Statement = {
|
|
|
- ensureIdle {
|
|
|
|
|
|
|
+ ensureRunning {
|
|
|
_state = Busy()
|
|
_state = Busy()
|
|
|
touchLastActivity()
|
|
touchLastActivity()
|
|
|
|
|
|
|
@@ -181,10 +181,6 @@ abstract class InteractiveWebSession(val id: Int, createInteractiveRequest: Crea
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private def ensureIdle[A](f: => A) = {
|
|
|
|
|
- ensureState(Idle(), f)
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
private def ensureRunning[A](f: => A) = {
|
|
private def ensureRunning[A](f: => A) = {
|
|
|
synchronized {
|
|
synchronized {
|
|
|
_state match {
|
|
_state match {
|