]> git.cworth.org Git - sup/commitdiff
pollmode bugfix
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sat, 24 Nov 2007 21:01:16 +0000 (21:01 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sat, 24 Nov 2007 21:01:16 +0000 (21:01 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@721 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/poll.rb

index 21464b411573808d0ba47528e552360f865ea3af..2faadfe87634d6f1d31bf3ebd0e870d2fa19bb06 100644 (file)
@@ -39,7 +39,7 @@ EOS
   end
 
   def buffer
-    BufferManager.spawn_unless_exists("<poll for new messages>", :hidden => true) { PollMode.new }
+    @buffer ||= BufferManager.spawn_unless_exists("<poll for new messages>", :hidden => true) { PollMode.new }
   end
 
   def poll