Skip to content

Commit 642cf3a

Browse files
authored
fix: add panic recovery (#1209)
1 parent 309db4d commit 642cf3a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3875,6 +3875,11 @@ func main() {
38753875
}
38763876
if !disableNotifications {
38773877
go func() {
3878+
defer func() {
3879+
if r := recover(); r != nil {
3880+
log.Printf("panic in macOS sync goroutine: %v", r)
3881+
}
3882+
}()
38783883
_ = config.SyncMacOSContacts()
38793884
_ = theme.SyncWithMacOS()
38803885
}()

0 commit comments

Comments
 (0)