summaryrefslogtreecommitdiff
path: root/lib/opentox.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r--lib/opentox.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/opentox.rb b/lib/opentox.rb
index 0f29c30..f125c30 100644
--- a/lib/opentox.rb
+++ b/lib/opentox.rb
@@ -115,6 +115,10 @@ module OpenTox
end
def wait_for_task uri
+ OpenTox.wait_for_task uri
+ end
+
+ def self.wait_for_task uri
if URI.task?(uri)
t = OpenTox::Task.new uri
t.wait