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

Commit

Permalink
Merge pull request #50 from super1207/master
Browse files Browse the repository at this point in the history
允许崩溃后快速重启
whitechi73 authored Nov 15, 2023

Verified

This commit was signed with the committer’s verified signature.
Ant0wan Antoine Barthelemy
2 parents cf445d1 + e6e03ee commit ba8322d
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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
@@ -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)
@@ -107,4 +108,4 @@ internal class InitRemoteService : IAction {
}
}
}
}
}

0 comments on commit ba8322d

Please sign in to comment.