mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-08-02 04: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:
committed by
Michal Privoznik
parent
b7d5d60274
commit
655b94803e
@ -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():
|
||||
|
Reference in New Issue
Block a user