Disable events if the event feature is disabled

By default obs-websocket sends all possible events (except high
velocity). But there's no need to receive events if the feature isn't
enabled in this library.
main
Dominik Nakamura 9 months ago
parent b080429b2f
commit 61d85c85e9
No known key found for this signature in database

@ -178,7 +178,11 @@ impl Client {
host,
port,
password,
event_subscriptions: None,
event_subscriptions: if cfg!(feature = "events") {
None
} else {
Some(EventSubscription::NONE)
},
#[cfg(feature = "tls")]
tls: false,
broadcast_capacity: None,

Loading…
Cancel
Save