Revert "Mqtt: wait for retained messages"
This reverts commit 96ef894ccc.
This commit is contained in:
parent
d974d372f1
commit
49c35a2d56
1 changed files with 0 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue