summaryrefslogtreecommitdiffstats
path: root/lib/evendoors/spin.rb
diff options
context:
space:
mode:
authorJérémy <jeremy@asynk.ch>2012-05-10 21:24:13 +0200
committerJérémy <jeremy@asynk.ch>2012-05-10 21:24:13 +0200
commit9b704b544d33ab3db45a3519bd25aa27c25d89ad (patch)
tree079e3045b764d5dc98cd6013f2b19841146ca6d4 /lib/evendoors/spin.rb
parent8e2408c735e659741542d66cd032d4c3405cd5e0 (diff)
downloadedoors-ruby-9b704b544d33ab3db45a3519bd25aa27c25d89ad.zip
edoors-ruby-9b704b544d33ab3db45a3519bd25aa27c25d89ad.tar.gz
Spin: #clear! clears pool too and set @spin=nil
Diffstat (limited to 'lib/evendoors/spin.rb')
-rw-r--r--lib/evendoors/spin.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/evendoors/spin.rb b/lib/evendoors/spin.rb
index 6b88a55..5608f46 100644
--- a/lib/evendoors/spin.rb
+++ b/lib/evendoors/spin.rb
@@ -59,6 +59,8 @@ module EvenDoors
end
#
def clear!
+ @spin= nil
+ @pool.clear
@sys_fifo.clear
@app_fifo.clear
end