summaryrefslogtreecommitdiffstats
path: root/lib/evendoors/board.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-10 09:35:16 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-10 09:35:16 +0200
commit41f2adace41c562ea1ed486130c72eb4d1503044 (patch)
treefa6ec1ca039fca1cd729c59f2814adaacf598703 /lib/evendoors/board.rb
parent6886fa096d832b0682eafe631922694653384994 (diff)
downloadedoors-ruby-41f2adace41c562ea1ed486130c72eb4d1503044.zip
edoors-ruby-41f2adace41c562ea1ed486130c72eb4d1503044.tar.gz
Door,Board: factorise release of @saved particle
Diffstat (limited to 'lib/evendoors/board.rb')
-rw-r--r--lib/evendoors/board.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/evendoors/board.rb b/lib/evendoors/board.rb
index 36ca332..ead1012 100644
--- a/lib/evendoors/board.rb
+++ b/lib/evendoors/board.rb
@@ -22,12 +22,7 @@ module EvenDoors
end
@saved = p
receive_p p
- if not @saved.nil?
- puts "#{path} didn't give that particle back #{p}" if EvenDoors::Spin.debug_errors
- puts "\t#{p.data EvenDoors::ERROR_FIELD}" if p.action==EvenDoors::ACT_ERROR
- release_p @saved
- @saved = nil
- end
+ garbage if not @saved.nil?
end
#
end