Skip to content

Commit b32fc75

Browse files
committed
Merge pull request #12453 from igor-suhorukov
* pr/12453: Remove redundant "close" call
2 parents cb12514 + cca976e commit b32fc75

File tree

1 file changed

+1
-2
lines changed
  • spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/client

1 file changed

+1
-2
lines changed

spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/client/TunnelClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -179,7 +179,6 @@ private void handleConnection(SocketChannel socketChannel) throws Exception {
179179
ByteBuffer buffer = ByteBuffer.allocate(BUFFER_SIZE);
180180
int amountRead = socketChannel.read(buffer);
181181
if (amountRead == -1) {
182-
outputChannel.close();
183182
return;
184183
}
185184
if (amountRead > 0) {

0 commit comments

Comments
 (0)