You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: discovery-agent-starter/src/main/java/com/nepxion/discovery/agent/plugin/thread/interceptor/ThreadCallInterceptor.java
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,8 @@ public static void before(Object object) {
21
21
if (null == asyncContext) {
22
22
return;
23
23
}
24
-
//Avoid calling in the same thread.
24
+
25
+
// Avoid calling in the same thread
25
26
if (asyncContext.getOriginThread().equals(Thread.currentThread())) {
26
27
return;
27
28
}
@@ -37,10 +38,12 @@ public static void after(Object object) {
37
38
if (null == asyncContext) {
38
39
return;
39
40
}
40
-
//Avoid calling in the same thread.
41
+
42
+
// Avoid calling in the same thread
41
43
if (asyncContext.getOriginThread().equals(Thread.currentThread())) {
0 commit comments