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
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
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
srvpro
Commits
426c535e
Commit
426c535e
authored
Jan 06, 2016
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e0e00f4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
ygopro-server.coffee
ygopro-server.coffee
+1
-2
ygopro-server.js
ygopro-server.js
+1
-4
No files found.
ygopro-server.coffee
View file @
426c535e
...
...
@@ -609,8 +609,7 @@ ygopro.stoc_follow 'SELECT_TP', false, (buffer, info, client, server)->
return
setInterval
()
->
for
room
in
Room
.
all
when
room
.
started
and
room
.
random_type
continue
unless
room
and
room
.
last_active_time
for
room
in
Room
.
all
when
room
and
room
.
started
and
room
.
random_type
and
room
.
last_active_time
time_passed
=
Math
.
floor
((
moment
()
-
room
.
last_active_time
)
/
1000
)
#log.info time_passed
if
time_passed
>=
settings
.
modules
.
hang_timeout
...
...
ygopro-server.js
View file @
426c535e
...
...
@@ -739,10 +739,7 @@
ref
=
Room
.
all
;
for
(
k
=
0
,
len
=
ref
.
length
;
k
<
len
;
k
++
)
{
room
=
ref
[
k
];
if
(
!
(
room
.
started
&&
room
.
random_type
))
{
continue
;
}
if
(
!
(
room
&&
room
.
last_active_time
))
{
if
(
!
(
room
&&
room
.
started
&&
room
.
random_type
&&
room
.
last_active_time
))
{
continue
;
}
time_passed
=
Math
.
floor
((
moment
()
-
room
.
last_active_time
)
/
1000
);
...
...
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