diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-13 18:23:40 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-13 18:26:09 +0200 |
commit | 2c27ab205c992d3387574aa6d57780744d35d36f (patch) | |
tree | e95bb88db16bac5d2050d3db13cd28570f44cd72 /timers.go | |
parent | 233f079a9479279d2aab68f4accb139ee87ad664 (diff) |
Rework index hashtable
Diffstat (limited to 'timers.go')
-rw-r--r-- | timers.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -108,7 +108,7 @@ func expiredZeroKeyMaterial(peer *Peer) { hs := &peer.handshake hs.mutex.Lock() - kp := &peer.keyPairs + kp := &peer.keypairs kp.mutex.Lock() if kp.previous != nil { @@ -125,7 +125,7 @@ func expiredZeroKeyMaterial(peer *Peer) { } kp.mutex.Unlock() - peer.device.indices.Delete(hs.localIndex) + peer.device.indexTable.Delete(hs.localIndex) hs.Clear() hs.mutex.Unlock() } |