aboutsummaryrefslogtreecommitdiffstats
path: root/src/federation
diff options
context:
space:
mode:
Diffstat (limited to 'src/federation')
-rw-r--r--src/federation/party.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/federation/party.rs b/src/federation/party.rs
index 5d18eb8..9d9c268 100644
--- a/src/federation/party.rs
+++ b/src/federation/party.rs
@@ -429,6 +429,10 @@ impl Signer {
Ok(event::signed(key, &self.party, &line, deps, does))
}
Signing::Agent(key, socket) => {
+ // The agent's answer is waited for blocking the thread, in async code: the
+ // client signs one event at a time and does nothing else meanwhile, and an
+ // agent may wait for its user (a touch, a confirmation) as long as that
+ // takes, which nothing here should cut short.
event::signed_by(&self.party, &key.line(), deps, does, |bytes| {
keys::sign_through(socket, key, bytes)
})