Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

允许崩溃后快速重启 #50

Merged
merged 2 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ internal object VisitorSvc: BaseSvc() {
it.putLong(moe.fuqiuluo.shamrock.remote.service.data.profile.ProfileProtocolConst.PARAM_TARGET_UIN, target)
it.putByteArray("vCookies", card.vCookies)
it.putBoolean("nearby_people", true)
it.putInt("favoriteSource", SUB_FROM_SHARE_CARD_TROOP)
it.putInt("favoriteSource", FROM_CONTACTS_TAB)
it.putInt("iCount", count)
it.putInt("from", FROM_SHARE_CARD)
it.putInt("from", FROM_CONTACTS_TAB)
}
return Result.success(Unit)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ internal class InitRemoteService : IAction {
}
require(config.port in 0 .. 65536) { "WebSocketServer端口不合法" }
val server = WebSocketService(config.address, config.port!!)
server.isReuseAddr = true
server.start()
} catch (e: Throwable) {
LogCenter.log(e.stackTraceToString(), Level.ERROR)
Expand All @@ -107,4 +108,4 @@ internal class InitRemoteService : IAction {
}
}
}
}
}