Browse Source

Save new access token after relogining

Tulir Asokan 2 năm trước cách đây
mục cha
commit
315e7921e6
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      custompuppet.go

+ 1 - 0
custompuppet.go

@@ -119,6 +119,7 @@ func (puppet *Puppet) tryRelogin(cause error, action string) bool {
 	}
 	puppet.log.Infofln("Successfully relogined after '%v' while %s", cause, action)
 	puppet.AccessToken = accessToken
+	puppet.Update()
 	return true
 }