Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ShirasawaSama committed Sep 1, 2021
1 parent 35fc06e commit f74042f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cn/apisium/nekomaid/builtin/Profiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ private void inject() {
if (rTaskField == null) {
try { rTaskField = it.getClass().getField("rTask"); } catch (Throwable ignored) {
rTaskField = it.getClass().getDeclaredField("task");
rTaskField.setAccessible(true);
}
rTaskField.setAccessible(true);
}
Runnable delegate = (Runnable) rTaskField.get(it);
synchronized (delegate) {
Expand Down

0 comments on commit f74042f

Please sign in to comment.