diff options
Diffstat (limited to 'jrt')
-rw-r--r-- | jrt/src/com/yahoo/jrt/TransportThread.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jrt/src/com/yahoo/jrt/TransportThread.java b/jrt/src/com/yahoo/jrt/TransportThread.java index 68b7c23b36b..870d1ce7adc 100644 --- a/jrt/src/com/yahoo/jrt/TransportThread.java +++ b/jrt/src/com/yahoo/jrt/TransportThread.java @@ -296,6 +296,9 @@ public class TransportThread { */ public TransportThread sync() { SyncCmd cmd = new SyncCmd(); + if (Thread.currentThread() == thread) { + log.log(Level.WARNING, "Attempting to sync " + thread + " with itself, which will deadlock"); + } if (postCommand(cmd)) { cmd.waitDone(); } else { |