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
25a2d86d
Commit
25a2d86d
authored
Jul 01, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no heartbeat in windbot
parent
25c3f035
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ygopro-server.coffee
ygopro-server.coffee
+3
-3
No files found.
ygopro-server.coffee
View file @
25a2d86d
...
...
@@ -2491,7 +2491,7 @@ ygopro.ctos_follow 'RESPONSE', false, (buffer, info, client, server)->
ygopro
.
stoc_follow
'TIME_LIMIT'
,
false
,
(
buffer
,
info
,
client
,
server
)
->
room
=
ROOM_all
[
client
.
rid
]
return
unless
room
and
settings
.
modules
.
heartbeat_detection
.
enabled
and
room
.
turn
and
room
.
turn
>
0
return
unless
room
and
settings
.
modules
.
heartbeat_detection
.
enabled
and
room
.
turn
and
room
.
turn
>
0
and
!
room
.
windbot
check
=
false
if
room
.
hostinfo
.
mode
!=
2
check
=
(
client
.
is_first
and
info
.
player
==
0
)
or
(
!
client
.
is_first
and
info
.
player
==
1
)
...
...
@@ -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
)
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
)
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
.
windbot
for
player
in
room
.
players
when
(
(
!
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
...
...
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