I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit edb8590d authored by zzz's avatar zzz
Browse files

move log outside synch

parent 3a7bfd28
No related branches found
No related tags found
No related merge requests found
...@@ -899,6 +899,8 @@ abstract class I2PSessionImpl implements I2PSession, I2CPMessageReader.I2CPMessa ...@@ -899,6 +899,8 @@ abstract class I2PSessionImpl implements I2PSession, I2CPMessageReader.I2CPMessa
* Close the socket carefully. * Close the socket carefully.
*/ */
private void closeSocket() { private void closeSocket() {
if (_log.shouldLog(Log.INFO))
_log.info(getPrefix() + "Closing the socket", new Exception("closeSocket"));
synchronized(_stateLock) { synchronized(_stateLock) {
changeState(State.CLOSING); changeState(State.CLOSING);
locked_closeSocket(); locked_closeSocket();
...@@ -911,7 +913,6 @@ abstract class I2PSessionImpl implements I2PSession, I2CPMessageReader.I2CPMessa ...@@ -911,7 +913,6 @@ abstract class I2PSessionImpl implements I2PSession, I2CPMessageReader.I2CPMessa
* Caller must change state. * Caller must change state.
*/ */
private void locked_closeSocket() { private void locked_closeSocket() {
if (_log.shouldLog(Log.INFO)) _log.info(getPrefix() + "Closing the socket", new Exception("closeSocket"));
if (_reader != null) { if (_reader != null) {
_reader.stopReading(); _reader.stopReading();
_reader = null; _reader = null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment