kopia lustrzana https://github.com/mate-dev/meshtastic-matrix-relay
avoid warnings when no connection exists
rodzic
60e8dffbed
commit
2d331c201d
7
main.py
7
main.py
|
@ -70,9 +70,10 @@ async def main():
|
||||||
# Start the Matrix client
|
# Start the Matrix client
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
# Update longnames & shortnames
|
if meshtastic_interface:
|
||||||
update_longnames(meshtastic_interface.nodes)
|
# Update longnames & shortnames
|
||||||
update_shortnames(meshtastic_interface.nodes)
|
update_longnames(meshtastic_interface.nodes)
|
||||||
|
update_shortnames(meshtastic_interface.nodes)
|
||||||
|
|
||||||
matrix_logger.info("Syncing with server...")
|
matrix_logger.info("Syncing with server...")
|
||||||
await matrix_client.sync_forever(timeout=30000)
|
await matrix_client.sync_forever(timeout=30000)
|
||||||
|
|
Ładowanie…
Reference in New Issue