StateMachineInterceptorList set() does nothing

- Fixes #318
This commit is contained in:
Gary Rosales
2017-02-15 12:39:07 -05:00
committed by Janne Valkealahti
parent 7d83b1432c
commit 70a8657463

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);
}
}