Skip to content

Commit

Permalink
cancel channel buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmturner committed Jun 16, 2018
1 parent 24c56e4 commit f71127f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (cl *Client) AddSession(tkt messages.Ticket, dep messages.EncKDCRepPart) {
TGT: tkt,
SessionKey: dep.Key,
SessionKeyExpiration: dep.KeyExpiration,
cancel: make(chan bool),
cancel: make(chan bool, 1),
}
// if a session already exists for this, cancel its auto renew.
if i, ok := cl.sessions.Entries[tkt.SName.NameString[1]]; ok {
Expand Down

0 comments on commit f71127f

Please sign in to comment.