Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

修复没有设置maxConnections时,计数不会减少 #899

Merged
merged 1 commit into from
Jan 20, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/components/connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ var bindEvents = function(self, socket) {
return;
}
closed = true;
if (self.connection && maxConnections) {
if (self.connection) {
self.connection.decreaseConnectionCount(session.uid);
}
});
Expand All @@ -250,7 +250,7 @@ var bindEvents = function(self, socket) {
return;
}
closed = true;
if (self.connection && maxConnections) {
if (self.connection) {
self.connection.decreaseConnectionCount(session.uid);
}
});
Expand Down Expand Up @@ -453,4 +453,4 @@ var verifyMessage = function(self, session, msg) {
message = utils.unicodeToUtf8(message);

return pubKey.verifyString(message, sig);
};
};