Преглед изворни кода

Save new access token after relogining

Tulir Asokan пре 2 година
родитељ
комит
315e7921e6
1 измењених фајлова са 1 додато и 0 уклоњено
  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
 }