StateMachineInterceptorList set() does nothing

- Backport #318 from master
This commit is contained in:
Janne Valkealahti
2017-03-08 11:22:34 +00:00
parent 61a790586a
commit 7a25849e9c

View File

@@ -45,9 +45,9 @@ public class StateMachineInterceptorList<S, E> {
* call
*/
public boolean set(List<StateMachineInterceptor<S, E>> interceptors) {
synchronized (interceptors) {
interceptors.clear();
return interceptors.addAll(interceptors);
synchronized (this.interceptors) {
this.interceptors.clear();
return this.interceptors.addAll(interceptors);
}
}