1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-08-01 00:21:59 +03:00

event-test.py: Add missing globale statement

to fix loop termination on exit.

Signed-off-by: Philipp Hahn <hahn@univention.de>
This commit is contained in:
Philipp Hahn
2018-09-21 15:34:59 +02:00
committed by Michal Privoznik
parent b7d5d60274
commit 655b94803e

View File

@ -663,6 +663,7 @@ def myConnectionCloseCallback(conn, reason, opaque):
"Error", "End-of-file", "Keepalive", "Client",
)
print("myConnectionCloseCallback: %s: %s" % (conn.getURI(), reasonStrings[reason]))
global run
run = False
def usage():