Akka: clean up state on exception (#2782)
This commit is contained in:
parent
718a5a17a3
commit
c5701bcdd2
|
@ -50,5 +50,10 @@ public class AkkaDispatcherInstrumentation implements TypeInstrumentation {
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Advice.OnMethodExit(onThrowable = Throwable.class, suppress = Throwable.class)
|
||||||
|
public static void exitDispatch(@Advice.Enter State state, @Advice.Thrown Throwable throwable) {
|
||||||
|
ExecutorInstrumentationUtils.cleanUpOnMethodExit(state, throwable);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue