Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
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
nanahira
srvpro
Commits
78da1f9d
Commit
78da1f9d
authored
Aug 22, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add log for join room for league use
parent
6f38f6d5
Pipeline
#4862
failed with stages
in 63 minutes and 10 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
ygopro-server.coffee
ygopro-server.coffee
+1
-0
ygopro-server.js
ygopro-server.js
+1
-0
No files found.
ygopro-server.coffee
View file @
78da1f9d
...
@@ -1971,6 +1971,7 @@ class Room
...
@@ -1971,6 +1971,7 @@ class Room
for
player
in
@
get_playing_player
()
when
player
and
player
!=
client
and
player
.
challonge_info
.
id
==
client
.
challonge_info
.
id
for
player
in
@
get_playing_player
()
when
player
and
player
!=
client
and
player
.
challonge_info
.
id
==
client
.
challonge_info
.
id
ygopro
.
stoc_die
(
client
,
"${challonge_player_already_in}"
)
ygopro
.
stoc_die
(
client
,
"${challonge_player_already_in}"
)
return
false
return
false
log
.
info
(
"Player
#{
client
.
name
}
joined room
#{
@
name
}
"
)
client
.
setTimeout
(
300000
)
#连接后超时5分钟
client
.
setTimeout
(
300000
)
#连接后超时5分钟
client
.
rid
=
_
.
indexOf
(
ROOM_all
,
this
)
client
.
rid
=
_
.
indexOf
(
ROOM_all
,
this
)
@
connect
(
client
)
@
connect
(
client
)
...
...
ygopro-server.js
View file @
78da1f9d
...
@@ -2635,6 +2635,7 @@
...
@@ -2635,6 +2635,7 @@
return
false
;
return
false
;
}
}
}
}
log
.
info
(
`Player
${
client
.
name
}
joined room
${
this
.
name
}
`
);
client
.
setTimeout
(
300000
);
//连接后超时5分钟
client
.
setTimeout
(
300000
);
//连接后超时5分钟
client
.
rid
=
_
.
indexOf
(
ROOM_all
,
this
);
client
.
rid
=
_
.
indexOf
(
ROOM_all
,
this
);
this
.
connect
(
client
);
this
.
connect
(
client
);
...
...
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