File tree Expand file tree Collapse file tree 2 files changed +127
-179
lines changed Expand file tree Collapse file tree 2 files changed +127
-179
lines changed Original file line number Diff line number Diff line change @@ -291,15 +291,11 @@ defmodule Midiex do
291
291
```
292
292
"""
293
293
def close ( [ out_conn | rest_conns ] ) do
294
- r = ( [ Backend . close_out_conn ( out_conn ) ] ++ close ( rest_conns ) )
295
- :timer . sleep ( 100 )
296
- r
294
+ [ Backend . close_out_conn ( out_conn ) ] ++ close ( rest_conns )
297
295
end
298
296
def close ( [ ] ) , do: [ ]
299
297
def close ( out_conn ) do
300
- r = Backend . close_out_conn ( out_conn )
301
- :timer . sleep ( 100 )
302
- r
298
+ Backend . close_out_conn ( out_conn )
303
299
end
304
300
@ doc section: :virtual
305
301
@ spec create_virtual_output ( String . t ( ) ) :: % Midiex.OutConn { }
@@ -521,20 +517,14 @@ defmodule Midiex do
521
517
```
522
518
"""
523
519
def unsubscribe ( midi_port ) when is_input_port ( midi_port ) do
524
- r = Backend . unsubscribe_port ( midi_port )
525
- :timer . sleep ( 100 )
526
- r
520
+ Backend . unsubscribe_port ( midi_port )
527
521
end
528
522
def unsubscribe ( midi_port ) when is_virtual_input_port ( midi_port ) do
529
- r = Backend . unsubscribe_virtual_port ( midi_port )
530
- :timer . sleep ( 100 )
531
- r
523
+ Backend . unsubscribe_virtual_port ( midi_port )
532
524
end
533
525
def unsubscribe ( [ midi_port | rest_ports ] ) when is_input_port ( midi_port ) or is_virtual_input_port ( midi_port ) do
534
526
if rest_ports != [ ] , do: unsubscribe ( rest_ports )
535
- r = unsubscribe ( midi_port )
536
- :timer . sleep ( 100 )
537
- r
527
+ unsubscribe ( midi_port )
538
528
end
539
529
def unsubscribe ( :all ) do
540
530
Backend . unsubscribe_all_ports ( )
You can’t perform that action at this time.
0 commit comments