Skip to content
Browse files

prevent devices being opened twice

  • Loading branch information...
1 parent fd87190 commit 2122003ae77c66ff7a29e641442826630b422590 @arirusso committed Sep 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/unimidi/congruous_api_adapter.rb
2 lib/unimidi/congruous_api_adapter.rb
@@ -20,7 +20,7 @@ def enabled?
# enable the device for use, can be passed a block to which the device will be passed back
def open(*a, &block)
+*a) unless enabled?
unless block.nil?

0 comments on commit 2122003

Please sign in to comment.
Something went wrong with that request. Please try again.