Skip to content

Commit 63c5f94

Browse files
fix: remove 3s sleep from terminate method
Signed-off-by: Artur Melanchyk <artur.melanchyk@gmail.com>
1 parent 54cf30a commit 63c5f94

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/main/java/com/veertu/plugin/anka/AbstractAnkaSlave.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ public Computer createComputer() {
110110

111111
public void terminate() throws IOException {
112112
try {
113-
Thread.sleep(3000); // Sleep for 3 seconds to avoid those spooky ChannelClosedException
114113
AnkaVmInstance vm = getAndLogInstance();
115114
if (vm != null) {
116115
LOGGER.log(Level.INFO, "Node {0} Instance {1} is in state {2}", new Object[]{getNodeName(), instanceId, vm.getSessionState()});
@@ -133,8 +132,6 @@ public void terminate() throws IOException {
133132
}
134133
} catch (AnkaMgmtException e) {
135134
throw new IOException(e);
136-
} catch (InterruptedException e) {
137-
e.printStackTrace();
138135
} finally {
139136
try {
140137
if (this.instanceId != null) {

0 commit comments

Comments
 (0)