update gui

pull/1/head
Edouard Paris 5 years ago
parent c8fad86d94
commit 11bac3c788

@ -227,6 +227,11 @@ func (l Backend) ListChannels(ctx context.Context, opt ...options.Channel) ([]*m
func (l Backend) GetChannelInfo(ctx context.Context, channel *models.Channel) error {
l.logger.Debug("GetChannelInfo")
// If channel is opening node information cannot be retrieved.
if channel.Status == models.ChannelOpening {
return nil
}
clt, err := l.Client(ctx)
if err != nil {
return err

@ -77,6 +77,7 @@ func (c *controller) Listen(ctx context.Context, g *gocui.Gui, sub chan *events.
c.logger.Error("failed", logging.Error(err))
}
}
g.Update(func(*gocui.Gui) error { return nil })
}
for event := range sub {

Loading…
Cancel
Save