lib/cpee/implementation.rb in cpee-1.3.121 vs lib/cpee/implementation.rb in cpee-1.3.122
- old
+ new
@@ -75,12 +75,11 @@
def response
controller = @a[0]
id = @r[0].to_i
callback = @r[2]
controller[id].mutex.synchronize do
- if controller[id].callbacks.has_key?(callback) then
+ if controller[id].callbacks.has_key?(callback)
controller[id].callbacks[callback].callback(@p)
- controller[id].callbacks.delete(callback)
end
end
end
end #}}}