Skip to content

Commit

Permalink
TDSChannelLock --> tdsChannelLock
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffery-Wasty committed Jan 11, 2024
1 parent 8d2f452 commit ebac597
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/microsoft/sqlserver/jdbc/IOBuffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ final boolean isLoggingPackets() {
int numMsgsSent = 0;
int numMsgsRcvd = 0;

private final transient Lock TDSChannelLock = new ReentrantLock();
private final transient Lock tdsChannelLock = new ReentrantLock();

// Last SPID received from the server. Used for logging and to tag subsequent outgoing
// packets to facilitate diagnosing problems from the server side.
Expand Down Expand Up @@ -773,7 +773,7 @@ void disableSSL() {
logger.finer(toString() + " Disabling SSL...");
}

TDSChannelLock.lock();
tdsChannelLock.lock();
try {
// Guard in case of disableSSL being called before enableSSL
if (proxySocket == null) {
Expand Down Expand Up @@ -839,7 +839,7 @@ void disableSSL() {
channelSocket = tcpSocket;
sslSocket = null;
} finally {
TDSChannelLock.unlock();
tdsChannelLock.unlock();
}

if (logger.isLoggable(Level.FINER))
Expand Down

0 comments on commit ebac597

Please sign in to comment.