lib/pry-moves/pry_ext.rb in pry-moves-0.1.8 vs lib/pry-moves/pry_ext.rb in pry-moves-0.1.9
- old
+ new
@@ -22,10 +22,11 @@
alias pry_forced pry
def pry
unless Pry.config.disable_breakpoints
- PryMoves.synchronize_threads
+ PryMoves.synchronize_threads ||
+ return # Don't start binding.pry when semaphore locked by current thread
pry_forced
end
end
end
\ No newline at end of file