forked from External/mage
set lock calls back to original place as per request
This commit is contained in:
parent
a7ffaafcb0
commit
fed2f31789
2 changed files with 2 additions and 2 deletions
|
|
@ -90,8 +90,8 @@ public class ChatSession {
|
|||
String userName = clients.get(userId);
|
||||
if (reason != DisconnectReason.LostConnection) { // for lost connection the user will be reconnected or session expire so no removeUserFromAllTablesAndChat of chat yet
|
||||
final Lock w = lock.writeLock();
|
||||
w.lock();
|
||||
try {
|
||||
w.lock();
|
||||
clients.remove(userId);
|
||||
} finally {
|
||||
w.unlock();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue