mirror of
https://gitee.com/goploy/goploy.git
synced 2024-12-05 05:29:23 +08:00
F checkUpdate() panic
This commit is contained in:
parent
d0fe65bbc4
commit
2897f5a6a6
7
main.go
7
main.go
@ -277,6 +277,13 @@ func handleClientSignal() {
|
||||
}
|
||||
|
||||
func checkUpdate() {
|
||||
defer func(){
|
||||
if err:=recover();err!=nil{
|
||||
println("Check failed")
|
||||
fmt.Printf("Check error: %+v\n",err)
|
||||
return
|
||||
}
|
||||
}()
|
||||
resp, err := http.Get("https://api.github.com/repos/zhenorzz/goploy/releases/latest")
|
||||
if err != nil {
|
||||
println("Check failed")
|
||||
|
Loading…
Reference in New Issue
Block a user