obsws 0.5.7 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/obsws/event.rb +5 -0
- data/lib/obsws/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e289e262d4b31c03c7df28ba6d638c39d04e362fb0173f2535e0bf60f188bd41
|
4
|
+
data.tar.gz: '0925f7d4d8695401d27dfb0d01df2c4fe5751d82d04c9bec752c981c52e1be8e'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79e9065b4190dd974195079e31dc191fb7412fa143297b1f6dacedb1aae2100ded74abac9c1553b7fc92dce2987f40615d1101dfe5eab987f982a3bd3a7d87dd
|
7
|
+
data.tar.gz: 5137c5ca260beaedcda8936532bd4d04b6154d2c4b7e4a005e5eb12ab070e5502c7231acf2539a90304170bb75ebdd2fdf96a5a7f9bf49a4eafbb6f3370a945f
|
data/lib/obsws/event.rb
CHANGED
@@ -71,6 +71,11 @@ module OBSWS
|
|
71
71
|
def initialize(**kwargs)
|
72
72
|
kwargs[:subs] ||= SUBS::LOW_VOLUME
|
73
73
|
@base_client = Base.new(**kwargs)
|
74
|
+
unless @base_client.identified.state == :identified
|
75
|
+
err_msg = @base_client.identified.error_message
|
76
|
+
logger.error(err_msg)
|
77
|
+
raise OBSWSConnectionError.new(err_msg)
|
78
|
+
end
|
74
79
|
logger.info("#{self} successfully identified with server")
|
75
80
|
rescue Errno::ECONNREFUSED, WaitUtil::TimeoutError => e
|
76
81
|
msg = "#{e.class.name}: #{e.message}"
|
data/lib/obsws/version.rb
CHANGED