Commit ac250d8 1 parent ed6addc commit ac250d8 Copy full SHA for ac250d8
File tree 7 files changed +10
-5
lines changed
src/main/java/io/jpower/kcp/netty
7 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ To add a dependency using Maven:
9
9
<dependency >
10
10
<groupId >io.jpower.kcp</groupId >
11
11
<artifactId >kcp-netty</artifactId >
12
- <version >1.4.11 </version >
12
+ <version >1.4.12 </version >
13
13
</dependency >
14
14
```
15
15
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<groupId >io.jpower.kcp</groupId >
7
7
<artifactId >kcp-parent</artifactId >
8
- <version >1.4.11 </version >
8
+ <version >1.4.12 </version >
9
9
</parent >
10
10
<modelVersion >4.0.0</modelVersion >
11
11
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<groupId >io.jpower.kcp</groupId >
7
7
<artifactId >kcp-parent</artifactId >
8
- <version >1.4.11 </version >
8
+ <version >1.4.12 </version >
9
9
</parent >
10
10
<modelVersion >4.0.0</modelVersion >
11
11
Original file line number Diff line number Diff line change @@ -331,6 +331,7 @@ private void release(List<Segment> segQueue) {
331
331
for (Segment seg : segQueue ) {
332
332
seg .recycle (true );
333
333
}
334
+ segQueue .clear ();
334
335
}
335
336
336
337
private ByteBuf tryCreateOrOutput (ByteBuf buffer , int need ) {
Original file line number Diff line number Diff line change @@ -222,6 +222,10 @@ public UkcpClientChannel conv(int conv) {
222
222
return this ;
223
223
}
224
224
225
+ public boolean kcpIsActive () {
226
+ return ukcp .isActive ();
227
+ }
228
+
225
229
void kcpReceive (ByteBuf buf ) throws IOException {
226
230
ukcp .receive (buf );
227
231
}
Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ public void read() {
295
295
exception1 = t ;
296
296
}
297
297
298
- if (exception1 == null ) {
298
+ if (exception1 == null && ukcpChannel . kcpIsActive () ) {
299
299
boolean mergeSegmentBuf = ukcpChannel .config ().isMergeSegmentBuf ();
300
300
CodecOutputList <ByteBuf > recvBufList = null ;
301
301
boolean recv = false ;
Original file line number Diff line number Diff line change 6
6
7
7
<groupId >io.jpower.kcp</groupId >
8
8
<artifactId >kcp-parent</artifactId >
9
- <version >1.4.11 </version >
9
+ <version >1.4.12 </version >
10
10
<packaging >pom</packaging >
11
11
12
12
<name >kcp-netty [Parent]</name >
You can’t perform that action at this time.
0 commit comments