From: wmorgan Date: Wed, 13 Jun 2007 02:12:24 +0000 (+0000) Subject: bugfix: kill_all_buffers goes through buffers in the right order X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=eae1442fa02be6f7bab0fdb29091189f1bf10078;p=sup bugfix: kill_all_buffers goes through buffers in the right order git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@458 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb index bb94fbe..ac7575f 100644 --- a/lib/sup/buffer.rb +++ b/lib/sup/buffer.rb @@ -271,8 +271,8 @@ class BufferManager def kill_all_buffers_safely until @buffers.empty? ## inbox mode always claims it's unkillable. we'll ignore it. - return false unless @buffers.first.mode.is_a?(InboxMode) || @buffers.first.mode.killable? - kill_buffer @buffers.first + return false unless @buffers.last.mode.is_a?(InboxMode) || @buffers.last.mode.killable? + kill_buffer @buffers.last end true end