File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
main/java/net/lecousin/framework/io/out2in
test/java/net/lecousin/framework/core/tests/concurrent Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ public int writeSync(ByteBuffer buffer) {
134
134
do {
135
135
SynchronizationPoint <NoException > sp = null ;
136
136
synchronized (this ) {
137
+ if (isClosing () || isClosed ()) return 0 ;
137
138
if (buffers .size () >= maxPendingBuffers ) {
138
139
sp = new SynchronizationPoint <>();
139
140
lockMaxBuffers .addLast (sp );
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public class TestDrivesTaskManager extends LCCoreAbstractTest {
13
13
@ Test (timeout =60000 )
14
14
public void simpleTests () {
15
15
Object res1 = Threading .getDrivesTaskManager ().getResource (new File ("." ));
16
- Object res2 = Threading .getDrivesTaskManager ().getResource ("." );
16
+ Object res2 = Threading .getDrivesTaskManager ().getResource (new File ( "." ). getAbsolutePath () );
17
17
Assert .assertEquals (res1 , res2 );
18
18
19
19
Threading .getDrivesTaskManager ().getResources ();
You can’t perform that action at this time.
0 commit comments