Skip to content

Commit 5dc6373

Browse files
committed
Fixed a bug with expired http clients
1 parent 69adf08 commit 5dc6373

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

auth.go

+2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ func (c *Reddit) auto_refresh() {
7474
// Reauthenticate and updates the object itself
7575
func (c *Reddit) update_creds() {
7676
temp, _ := Authenticate(&c.Creds)
77+
tempClient := c.Client
7778
*c = *temp
79+
c.SetClient(tempClient)
7880
}
7981

8082
func (c *Reddit) SetDefault() {

0 commit comments

Comments
 (0)