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
Branches
Tags
No related merge requests found
......@@ -447,7 +447,7 @@ var rootCmd = &cobra.Command{
}
} else {
// 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 {
end = true
}
......
......@@ -208,7 +208,7 @@ func handleE2ESending(session user.Session,
// FIXME: This is a hack to prevent a crash, this function should be
// 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 {
// Get send Rekey
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