lib/expectr.rb in expectr-0.8.2 vs lib/expectr.rb in expectr-0.8.3
- old
+ new
@@ -257,9 +257,10 @@
@out_mutex.synchronize do
match = pattern.match @buffer
@out_update = false
end
end
+ sleep 0.1
end
end
@out_mutex.synchronize do
@discard = @buffer[0..match.begin(0)-1]