From 3c9c3e4561e0997c2c74b53dfdbb2dc57df2c8a3 Mon Sep 17 00:00:00 2001 From: wmorgan Date: Tue, 12 Jun 2007 20:29:23 +0000 Subject: [PATCH] bugfix: ignore nil ids passed to BufferManager#clear git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@448 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- lib/sup/buffer.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb index bb94fbe..cfcf40b 100644 --- a/lib/sup/buffer.rb +++ b/lib/sup/buffer.rb @@ -444,6 +444,7 @@ class BufferManager ## a little tricky because we can't just delete_at id because ids ## are relative (they're positions into the array). def clear id + next unless id # not sure why this happens---thread stuff? @minibuf_mutex.synchronize do @minibuf_stack[id] = nil if id == @minibuf_stack.length - 1 -- 2.45.2