fixes #31
fixes another worker issue i got: when paho disconnects from mqtt, if publish is called in the worker instead of a separated goroutine, the worker freezes for about 30sec (there is a blackout before the "disconnected" log message from paho
drawbacks of the fix: currently if the timeout is hit, there is no log when paho actually send the message when it reconnects
fixes #31 fixes another worker issue i got: when paho disconnects from mqtt, if publish is called in the worker instead of a separated goroutine, the worker freezes for about 30sec (there is a blackout before the "disconnected" log message from paho
drawbacks of the fix: currently if the timeout is hit, there is no log when paho actually send the message when it reconnects
Signed-off-by: PricelessRabbit PricelessRabbit@gmail.com