assign timeout_sec directly

This commit is contained in:
onyx-and-iris 2023-08-11 16:14:53 +01:00
parent dc8ac155ec
commit 59bcf2a338

View File

@ -12,12 +12,11 @@ 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: @connect_timeout
timeout_sec: kwargs[:connect_timeout] || 3
) { @identified }
end