Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
Thick-Common
Commits
5570eba0
Commit
5570eba0
authored
Mar 27, 2021
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 GM_Disconnected 写错了, 之前 无法 autoscan。
parent
9512dcc5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
GM_Base.cs
Project.FLY.Thick.Base/FLY.Thick.Base/Server/GM_Base.cs
+17
-3
No files found.
Project.FLY.Thick.Base/FLY.Thick.Base/Server/GM_Base.cs
View file @
5570eba0
...
...
@@ -288,7 +288,13 @@ namespace FLY.Thick.Base.Server
if
(
isReadyToAutoScan
)
{
//需要自动扫描
if
(
stopwatch
.
Elapsed
>
TimeSpan
.
FromMinutes
(
3
))
if
(
stopwatch
.
Elapsed
<
TimeSpan
.
FromSeconds
(
30
))
{
isReadyToAutoScan
=
false
;
stopwatch
.
Stop
();
//30秒内又连上了,直接重启
mGMAutoScan
.
Start
(
0
);
}
else
if
(
stopwatch
.
Elapsed
<
TimeSpan
.
FromMinutes
(
3
))
{
isReadyToAutoScan
=
false
;
stopwatch
.
Stop
();
...
...
@@ -357,8 +363,16 @@ namespace FLY.Thick.Base.Server
}
public
bool
Start
(
int
delay
)
{
Delay
=
delay
;
return
Start
();
if
(
delay
<=
0
)
{
ReScan
();
return
true
;
}
else
{
Delay
=
delay
;
return
Start
();
}
}
public
override
bool
Start
()
{
...
...
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