We don't need to wait for the shutdown

parent 21ec3737
......@@ -77,10 +77,9 @@ func New(cfg Config) (Client, error) {
// Shutdown the client
func (c Client) Shutdown() {
c.proxy.Shutdown()
c.proxy.Wait()
}
// Shutdown a message into katzenpost
// Send a message into katzenpost
func (c Client) Send(recipient, msg string) error {
var identityKey ecdh.PrivateKey
identityKey.FromBytes(identityKeyBytes)
......
......@@ -77,7 +77,6 @@ func New(cfg Config) (Client, error) {
// Shutdown the client
func (c Client) Shutdown() {
c.proxy.Shutdown()
c.proxy.Wait()
}
// Send a message into katzenpost
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment