We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7035699 commit 047790eCopy full SHA for 047790e
spring-integration-ip/src/test/java/org/springframework/integration/ip/tcp/TcpOutboundGatewayTests.java
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2019 the original author or authors.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
@@ -377,12 +377,14 @@ public void run() {
377
oos.writeObject(request.replace("Test", "Reply"));
378
logger.debug("Replied to " + request);
379
lastReceived.set(request);
380
- serverLatch.countDown();
381
}
382
catch (IOException e) {
383
logger.debug("error on write " + e.getClass().getSimpleName());
384
socket.close();
385
+ finally {
386
+ serverLatch.countDown();
387
+ }
388
389
390
0 commit comments