diff --git a/protocol/connections/tokenboardclientapp.go b/protocol/connections/tokenboardclientapp.go index 8f8f4d3..c365365 100644 --- a/protocol/connections/tokenboardclientapp.go +++ b/protocol/connections/tokenboardclientapp.go @@ -199,15 +199,16 @@ func (ta *TokenBoardClient) MakePayment() error { conn.Close() return nil } + log.Errorf("invalid case of powapp. this should not happen") + return errors.New("invalid cast of powapp. this should never happen") } - } else { - log.Debugf("failed to make a connection. trying again...") - // it doesn't actually take that long to make a payment, so waiting a small amount of time should suffice - time.Sleep(time.Second) + log.Debugf("could not connect to payment server %v..trying again") return ta.MakePayment() } - log.Debugf("Error making payment: to %v %v", ta.tokenServiceOnion, err) - return err + log.Debugf("failed to make a connection. trying again...") + // it doesn't actually take that long to make a payment, so waiting a small amount of time should suffice + time.Sleep(time.Second) + return ta.MakePayment() } // NextToken retrieves the next token