Revert "Mqtt: wait for retained messages"

This reverts commit 96ef894ccc.
This commit is contained in:
andig 2023-12-24 13:53:32 +01:00
parent d974d372f1
commit 49c35a2d56

View file

@ -141,8 +141,6 @@ func (m *Client) Listen(topic string, callback func(string)) error {
case <-time.After(request.Timeout):
return fmt.Errorf("subscribe: %s: %w", topic, api.ErrTimeout)
case <-token.Done():
// TODO depends on https://github.com/eclipse/paho.mqtt.golang/issues/663
time.Sleep(100 * time.Millisecond)
return nil
}
}