Skip to content

Commit 0083ebb

Browse files
author
mmornati
committed
Fixed problem making variable to Null for memory clean
1 parent 5ec70fa commit 0083ebb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main/java/hudson/plugins/libvirt/Hypervisor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ public synchronized Map<String, Domain> getDomains() throws LibvirtException {
171171
LogRecord rec = new LogRecord(Level.INFO, "Closing hypervisor connection");
172172
LOGGER.log(rec);
173173
hypervisorConnection.close();
174-
hypervisorConnection = null;
175174
} else {
176175
LogRecord rec = new LogRecord(Level.SEVERE, "Cannot connect to datacenter {0} as {1}/******");
177176
rec.setParameters(new Object[]{hypervisorHost, username});

0 commit comments

Comments
 (0)