Skip to content
Snippets Groups Projects
Commit a8136fec authored by Rick Carback's avatar Rick Carback
Browse files

Whoops, fix for loop logic

parent 7dc7231c
No related branches found
No related tags found
No related merge requests found
...@@ -447,7 +447,7 @@ var rootCmd = &cobra.Command{ ...@@ -447,7 +447,7 @@ var rootCmd = &cobra.Command{
} }
} else { } else {
// Wait up to 45 seconds to receive a message // Wait up to 45 seconds to receive a message
for end, timeout := true, time.After(45*time.Second); end; { for end, timeout := false, time.After(45*time.Second); !end; {
if text.MessagesReceived > 0 { if text.MessagesReceived > 0 {
end = true end = true
} }
......
...@@ -208,7 +208,7 @@ func handleE2ESending(session user.Session, ...@@ -208,7 +208,7 @@ func handleE2ESending(session user.Session,
// FIXME: This is a hack to prevent a crash, this function should be // FIXME: This is a hack to prevent a crash, this function should be
// able to block until this condition is true. // able to block until this condition is true.
for end, timeout := false, time.After(60*time.Second); end; { for end, timeout := false, time.After(60*time.Second); !end; {
if rekey { if rekey {
// Get send Rekey // Get send Rekey
key, action = km.PopRekey() key, action = km.PopRekey()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment