Ubuntu Pastebin

Paste from jamespage at Thu, 31 Aug 2017 16:26:14 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
--- a/src/rpc/virnetdaemon.c
+++ b/src/rpc/virnetdaemon.c
@@ -515,13 +515,9 @@ virNetDaemonCallInhibit(virNetDaemonPtr
                                         &pendingReply,
                                         25 * 1000) &&
         pendingReply) {
-        if (dbus_pending_call_get_completed(pendingReply)) {
-            virNetDaemonGotInhibitReply(pendingReply, dmn);
-        } else {
-            dbus_pending_call_set_notify(pendingReply,
-                                         virNetDaemonGotInhibitReply,
-                                         dmn, NULL);
-        }
+        dbus_pending_call_set_notify(pendingReply,
+                                     virNetDaemonGotInhibitReply,
+                                     dmn, NULL);
         dmn->autoShutdownCallingInhibit = true;
     }
     virDBusMessageUnref(message);
Download as text