fix: 死锁.
This commit is contained in:
@@ -175,12 +175,12 @@ public abstract class AbstractStateMachine<S> extends AbstractStateManager<S> im
|
||||
return false;
|
||||
}
|
||||
S oldState = get();
|
||||
boolean result = super.switchTo(state);
|
||||
if (result) {
|
||||
|
||||
updateCurrentIndex(i);
|
||||
|
||||
S newState = get();
|
||||
invokeHandlers(oldState, newState);
|
||||
}
|
||||
return result;
|
||||
return true;
|
||||
} finally {
|
||||
writeLock.unlock();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user