libvirt_async 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/libvirt_async/stream_read.rb +3 -2
- data/lib/libvirt_async/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: 3ceed699e8f54337a21a865a705812aa9e9dc254f09e940c5a7599ffe0bd636b
|
4
|
+
data.tar.gz: 220744ac997b245a94ff5bcb3fc8e876b94a78e58198c06eb2442cb43cdfaee3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4eee9029a3ffad0987f7b687c88384db43c498832cf1bedabecd9a013bffd6d015f6ab01dc136907db05232fa95bb8c3939d0b90ab4358181ec80a73121133eb
|
7
|
+
data.tar.gz: c51ef28c2fe03d74f400865742331e29ab197a9ae2bb6de2b106c0937b539d7385c2aa89a1fe299d07a5a27ee425a321f17be6094d6a62d2ea763e7776faa663
|
@@ -44,10 +44,11 @@ module LibvirtAsync
|
|
44
44
|
raise ArgumentError, 'block must be given' if @callback.nil?
|
45
45
|
|
46
46
|
dbg { "#{to_s}#call event_add_callback calling" }
|
47
|
+
proc = -> (_stream, events, _opaque) { stream_callback(events) }
|
47
48
|
@cb_opaque = stream.event_add_callback(
|
48
49
|
Libvirt::Stream::EVENT_READABLE,
|
49
|
-
|
50
|
-
|
50
|
+
self,
|
51
|
+
&proc
|
51
52
|
)
|
52
53
|
dbg { "#{to_s}#call event_add_callback called" }
|
53
54
|
|