mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
avoid panics
This commit is contained in:
parent
f619a904fa
commit
0ffeab9c8d
@ -127,6 +127,11 @@ func (widget *Widget) Refresh() {
|
||||
/* -------------------- Unexported Functions -------------------- */
|
||||
|
||||
func (widget *Widget) updateSummary() {
|
||||
// In case if anything bad happened!
|
||||
defer func() {
|
||||
recover()
|
||||
}()
|
||||
|
||||
client := &http.Client{
|
||||
Timeout: time.Duration(5 * time.Second),
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user