mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-17 12:00:17 -07:00
Make writingLock final.
This commit is contained in:
parent
fd4feb158a
commit
a275ea6251
1 changed files with 2 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ public class IoSession {
|
||||||
/**
|
/**
|
||||||
* The writing lock.
|
* The writing lock.
|
||||||
*/
|
*/
|
||||||
private Lock writingLock = new ReentrantLock();
|
private final Lock writingLock = new ReentrantLock();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The name hash.
|
* The name hash.
|
||||||
|
|
@ -139,7 +139,7 @@ public class IoSession {
|
||||||
try {
|
try {
|
||||||
writingLock.tryLock(1000L, TimeUnit.MILLISECONDS);
|
writingLock.tryLock(1000L, TimeUnit.MILLISECONDS);
|
||||||
} catch (Exception e){
|
} catch (Exception e){
|
||||||
System.out.println(e);
|
e.printStackTrace();
|
||||||
writingLock.unlock();
|
writingLock.unlock();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue