Skip to content

Commit

Permalink
reset host & user on Client.close()
Browse files Browse the repository at this point in the history
  • Loading branch information
smurfpandey committed Mar 2, 2015
1 parent 09765de commit e4363cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ func NewClientFromURL(url string) (*Client, error) {
func (client *Client) Close() error {
//Clear history
client.history = nil
client.host = ""
client.user = ""
return client.db.Close()
}

Expand Down

0 comments on commit e4363cd

Please sign in to comment.