summaryrefslogtreecommitdiffstats
path: root/lib/iotas/particle.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/iotas/particle.rb')
-rw-r--r--lib/iotas/particle.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/iotas/particle.rb b/lib/iotas/particle.rb
index 850c6ad..3cb48b3 100644
--- a/lib/iotas/particle.rb
+++ b/lib/iotas/particle.rb
@@ -134,6 +134,12 @@ module Iotas
@dsts.shift
end
#
+ def dst_reached!
+ d = @dst
+ @dst = nil
+ d
+ end
+ #
def error! e, dst=nil
@action = Iotas::ACT_ERROR
@dst = dst||@src