mirror of
https://github.com/HolographicHat/Yae.git
synced 2026-03-21 03:49:48 +08:00
more message
This commit is contained in:
11
app.js
11
app.js
@@ -15,6 +15,12 @@ const onExit = () => {
|
||||
// TODO: use kotlin rewrite it
|
||||
(async () => {
|
||||
try {
|
||||
process.once("SIGHUP", () => {
|
||||
setupHost(true)
|
||||
})
|
||||
process.on("unhandledRejection", (reason, promise) => {
|
||||
console.log("Unhandled Rejection at: ", promise, "\n0Reason:", reason)
|
||||
})
|
||||
process.on("uncaughtException", (err, origin) => {
|
||||
appcenter.uploadError(err, true)
|
||||
console.log(err)
|
||||
@@ -43,7 +49,10 @@ const onExit = () => {
|
||||
}
|
||||
})
|
||||
gameProcess.on("exit", () => {
|
||||
if (unexpectedExit) process.exit(0)
|
||||
if (unexpectedExit) {
|
||||
console.log("游戏进程异常退出")
|
||||
process.exit(0)
|
||||
}
|
||||
})
|
||||
},(ip, port, hServer) => {
|
||||
let login = false
|
||||
|
||||
Reference in New Issue
Block a user