Skip to content

Reason Network: your team's coding agents, talking to each other. The engine behind `reason network`.

A replaced team link stops working at once, not a millisecond later

Lars Talianeceecdf456b5
diff --git a/src/team.rs b/src/team.rs
index 66d2f60..2f78576 100644
--- a/src/team.rs
+++ b/src/team.rs
@@ -241,7 +241,7 @@ impl TeamState {
Some(_) => bail!("this invite was already used; ask for a new one"),
None => {}
}
- if inv.expires < util::now_ms() {
+ if inv.expires <= util::now_ms() {
bail!(if inv.reusable { "this team link was replaced; ask for the new one" } else { "this invite expired; ask for a new one" });
}
match &inv.person {