Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
solo-1
Commits
3f3585e5
Commit
3f3585e5
authored
Nov 09, 2017
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
Fix #12370
parent
d2c8588e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
src/main/java/org/b3log/solo/Starter.java
src/main/java/org/b3log/solo/Starter.java
+11
-1
No files found.
src/main/java/org/b3log/solo/Starter.java
View file @
3f3585e5
...
@@ -37,7 +37,7 @@ import java.net.URI;
...
@@ -37,7 +37,7 @@ import java.net.URI;
* </ul>
* </ul>
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.1.0.
9, Jul
9, 2017
* @version 1.1.0.
10, Nov
9, 2017
* @since 1.2.0
* @since 1.2.0
*/
*/
public
final
class
Starter
{
public
final
class
Starter
{
...
@@ -187,6 +187,16 @@ public final class Starter {
...
@@ -187,6 +187,16 @@ public final class Starter {
// Ignored
// Ignored
}
}
Runtime
.
getRuntime
().
addShutdownHook
(
new
Thread
(()
->
{
try
{
server
.
stop
();
}
catch
(
final
Exception
e
)
{
logger
.
log
(
Level
.
ERROR
,
"Server stop failed"
,
e
);
System
.
exit
(-
1
);
}
}));
server
.
join
();
server
.
join
();
}
}
}
}
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