Skip to content
Snippets Groups Projects
Commit 61839c3f authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

fixed a bug in channel send traker which would cause a crash

parent a037ba8c
No related branches found
No related tags found
3 merge requests!510Release,!419rewrote the health tracker to both consider if there are waiting rounds and...,!340Project/channels
......@@ -214,7 +214,7 @@ func (st *sendTracker) MessageReceive(messageID cryptoChannel.MessageID) bool {
if len(roundList) == 1 {
delete(st.byRound, msgData.RoundID)
} else {
newRoundList := make([]*tracked, len(roundList)-1)
newRoundList := make([]*tracked, 0, len(roundList)-1)
for i := range roundList {
if !roundList[i].MsgID.Equals(messageID) {
newRoundList = append(newRoundList, roundList[i])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment