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
25c3f035
Commit
25c3f035
authored
Jul 01, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e0323201
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
ygopro-server.coffee
ygopro-server.coffee
+3
-3
ygopro-server.js
ygopro-server.js
+3
-3
No files found.
ygopro-server.coffee
View file @
25c3f035
...
...
@@ -660,7 +660,7 @@ CLIENT_heartbeat_register = (client, send, extend_time) ->
client
.
heartbeat_responsed
=
false
if
send
ygopro
.
stoc_send
(
client
,
"TIME_LIMIT"
,
{
player
:
(
if
client
.
is_first
or
client
.
is_reconnect_recovering
then
0
else
1
),
player
:
(
if
client
.
is_first
and
!
client
.
is_reconnect_recovering
then
0
else
1
),
left_time
:
0
})
client
.
heartbeat_timeout
=
setTimeout
(()
->
...
...
@@ -2703,8 +2703,8 @@ if settings.modules.mycard.enabled
if
settings
.
modules
.
heartbeat_detection
.
enabled
setInterval
()
->
for
room
in
ROOM_all
when
room
and
room
.
started
and
(
room
.
hostinfo
.
time_limit
==
0
or
!
room
.
turn
or
room
.
turn
<=
0
)
and
room
.
duel_count
and
room
.
duel_count
>
0
for
player
in
room
.
players
when
(
!
player
.
is_local
or
!
room
.
windbot
)
and
(
!
room
.
changing_side
or
player
.
selected_preduel
)
for
room
in
ROOM_all
when
room
and
room
.
started
and
(
room
.
hostinfo
.
time_limit
==
0
or
!
room
.
turn
or
room
.
turn
<=
0
)
for
player
in
room
.
players
when
(
!
player
.
is_local
or
!
room
.
windbot
)
and
(
((
!
room
.
changing_side
or
player
.
selected_preduel
)
and
room
.
duel_count
and
room
.
duel_count
>
0
)
or
player
.
is_reconnect_recovering
)
CLIENT_heartbeat_register
(
player
,
true
)
return
,
settings
.
modules
.
heartbeat_detection
.
interval
...
...
ygopro-server.js
View file @
25c3f035
...
...
@@ -845,7 +845,7 @@
client
.
heartbeat_responsed
=
false
;
if
(
send
)
{
ygopro
.
stoc_send
(
client
,
"
TIME_LIMIT
"
,
{
player
:
(
client
.
is_first
||
client
.
is_reconnect_recovering
?
0
:
1
),
player
:
(
client
.
is_first
&&
!
client
.
is_reconnect_recovering
?
0
:
1
),
left_time
:
0
});
}
...
...
@@ -3423,11 +3423,11 @@
var
len2
,
len3
,
m
,
n
,
player
,
ref2
,
room
;
for
(
m
=
0
,
len2
=
ROOM_all
.
length
;
m
<
len2
;
m
++
)
{
room
=
ROOM_all
[
m
];
if
(
room
&&
room
.
started
&&
(
room
.
hostinfo
.
time_limit
===
0
||
!
room
.
turn
||
room
.
turn
<=
0
)
&&
room
.
duel_count
&&
room
.
duel_count
>
0
)
{
if
(
room
&&
room
.
started
&&
(
room
.
hostinfo
.
time_limit
===
0
||
!
room
.
turn
||
room
.
turn
<=
0
))
{
ref2
=
room
.
players
;
for
(
n
=
0
,
len3
=
ref2
.
length
;
n
<
len3
;
n
++
)
{
player
=
ref2
[
n
];
if
((
!
player
.
is_local
||
!
room
.
windbot
)
&&
(
!
room
.
changing_side
||
player
.
selected_preduel
))
{
if
((
!
player
.
is_local
||
!
room
.
windbot
)
&&
(
((
!
room
.
changing_side
||
player
.
selected_preduel
)
&&
room
.
duel_count
&&
room
.
duel_count
>
0
)
||
player
.
is_reconnect_recovering
))
{
CLIENT_heartbeat_register
(
player
,
true
);
}
}
...
...
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