This commit is contained in:
@@ -50,14 +50,14 @@ func runAPRSIS(ctx context.Context, command *cli.Command) error {
|
||||
}
|
||||
|
||||
func receiveAPRSIS(config *hamview.BrokerConfig, callsign string, client *aprsis.ProxyClient) {
|
||||
defer client.Close()
|
||||
defer func() { _ = client.Close() }()
|
||||
|
||||
broker, err := hamview.NewBroker(config)
|
||||
if err != nil {
|
||||
logger.Errorf("receiver: can't setup to broker: %v", err)
|
||||
return
|
||||
}
|
||||
defer broker.Close()
|
||||
defer func() { _ = broker.Close() }()
|
||||
|
||||
info := client.Info() // TODO: enrich info from config?
|
||||
|
||||
@@ -73,5 +73,5 @@ func receiveAPRSIS(config *hamview.BrokerConfig, callsign string, client *aprsis
|
||||
logger.Error(err)
|
||||
}
|
||||
}
|
||||
logger.Info("receiver: stopped receiving packets from station: %s", callsign)
|
||||
logger.Infof("receiver: stopped receiving packets from station: %s", callsign)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user