diff --git a/mini/access_token.go b/mini/access_token.go index 8b7c87e..98867cc 100644 --- a/mini/access_token.go +++ b/mini/access_token.go @@ -93,6 +93,7 @@ func (s *SDK) goAutoRefreshStableAccessToken() { buf := make([]byte, 64<<10) buf = buf[:runtime.Stack(buf, false)] s.logger.Errorf("mini_goAutoRefreshAccessToken: panic recovered: %s\n%s", r, buf) + s.goAutoRefreshStableAccessToken() } }() for { diff --git a/open/access_token.go b/open/access_token.go index 2bcaa02..4565b2b 100644 --- a/open/access_token.go +++ b/open/access_token.go @@ -46,6 +46,7 @@ func (s *SDK) goAutoRefreshAccessTokenJob() { buf := make([]byte, 64<<10) buf = buf[:runtime.Stack(buf, false)] s.logger.Errorf("open_goAutoRefreshAccessToken: panic recovered: %s\n%s", r, buf) + s.goAutoRefreshAccessTokenJob() } }() for { diff --git a/public/access_token.go b/public/access_token.go index df1b99b..8d5e5cb 100644 --- a/public/access_token.go +++ b/public/access_token.go @@ -42,6 +42,7 @@ func (s *SDK) goAutoRefreshAccessToken() { buf := make([]byte, 64<<10) buf = buf[:runtime.Stack(buf, false)] s.logger.Errorf("public_goAutoRefreshAccessToken: panic recovered: %s\n%s", r, buf) + s.goAutoRefreshAccessToken() } }() for {