mirror of
https://github.com/onyx-and-iris/obsws-ruby.git
synced 2024-11-15 18:50:47 +00:00
adds connect_timeout kwarg for base class
This commit is contained in:
parent
a40ab77be9
commit
9be9dc80a2
@ -12,11 +12,12 @@ module OBSWS
|
||||
port = kwargs[:port] || 4455
|
||||
@password = kwargs[:password] || ""
|
||||
@subs = kwargs[:subs] || 0
|
||||
@connect_timeout = kwargs[:connect_timeout] || 3
|
||||
setup_driver(host, port) and start_driver
|
||||
WaitUtil.wait_for_condition(
|
||||
"successful identification",
|
||||
delay_sec: 0.01,
|
||||
timeout_sec: 3
|
||||
timeout_sec: @connect_timeout
|
||||
) { @identified }
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user