mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-04-03 20:07:36 +03:00
Minor fixes
This commit is contained in:
parent
8a2d3fbb28
commit
b0aaa86806
3 changed files with 8 additions and 7 deletions
6
box.go
6
box.go
|
@ -203,7 +203,7 @@ func (s *Box) PreStart() error {
|
|||
defer func() {
|
||||
v := recover()
|
||||
if v != nil {
|
||||
log.Error(E.Cause(err, "origin error"))
|
||||
println(err.Error())
|
||||
debug.PrintStack()
|
||||
panic("panic on early close: " + fmt.Sprint(v))
|
||||
}
|
||||
|
@ -222,9 +222,9 @@ func (s *Box) Start() error {
|
|||
defer func() {
|
||||
v := recover()
|
||||
if v != nil {
|
||||
log.Error(E.Cause(err, "origin error"))
|
||||
println(err.Error())
|
||||
debug.PrintStack()
|
||||
panic("panic on early close: " + fmt.Sprint(v))
|
||||
println("panic on early start: " + fmt.Sprint(v))
|
||||
}
|
||||
}()
|
||||
s.Close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue