TECH7Fox / asterisk-hass-integration

Asterisk integration for Home Assistant
60 stars 14 forks source link

Detected blocking call to sleep inside the event loop. This is causing stability issues. #48

Closed nanosonde closed 2 years ago

nanosonde commented 2 years ago

Hi!

Just found this in my logs. Should be fixed. In general calling something like sleep() in an event loop's main thread is bad practise.

Logger: homeassistant.util.async Source: util/async.py:150 First occurred: 14:38:03 (1 occurrences) Last logged: 14:38:03

Detected blocking call to sleep inside the event loop. This is causing stability issues. Please report issue to the custom component author for asterisk doing blocking calls at custom_components/asterisk/init.py, line 101: sleep(5)

TECH7Fox commented 2 years ago

Removed it. :)