Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-match
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-match
Commits
e063b439
Commit
e063b439
authored
Feb 05, 2017
by
Peter Xin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix
parent
2f5b6dc5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
Dockerfile
Dockerfile
+1
-0
main.js
main.js
+1
-1
No files found.
Dockerfile
View file @
e063b439
...
...
@@ -4,5 +4,6 @@ WORKDIR /usr/src/app
COPY
package.json /usr/src/app/
RUN
npm
install
COPY
. /usr/src/app
RUN
cp
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
EXPOSE
1025
CMD
[ "npm", "start" ]
main.js
View file @
e063b439
...
...
@@ -252,7 +252,7 @@ let closedUser = function (res, pool) {
index
=
i
;
// 若用户已在匹配池中,移除
if
(
index
>=
0
)
{
console
.
l
og
(
res
.
username
+
"
has closed the connection. Removed from the pool.
"
);
localL
og
(
res
.
username
+
"
has closed the connection. Removed from the pool.
"
);
pool
.
splice
(
index
,
1
);
}
// 若用户未在匹配池中,挂黑名单
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment