Skip to content
Snippets Groups Projects
Commit efb9c78f authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Revert "Don't check if network is healthy before trying to add authentication channel"

This reverts commit 7cd4344a.
parent 0ce94349
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,11 @@ func (c *Client) RequestAuthenticatedChannel(recipient, me contact.Contact,
message string) error {
jww.INFO.Printf("RequestAuthenticatedChannel(%s)", recipient.ID)
if !c.network.GetHealthTracker().IsHealthy() {
return errors.New("Cannot request authenticated channel " +
"creation when the network is not healthy")
}
return auth.RequestAuth(recipient, me, message, c.rng.GetStream(),
c.storage, c.network)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment