markwal / OctoPrint-PortLister

An OctoPrint plugin that notices when a new serial port appears and refreshes the port list without a page refresh
GNU Affero General Public License v3.0
26 stars 10 forks source link

Unconditional connection retries #6

Closed synman closed 4 years ago

synman commented 7 years ago

Since it appears 50% of the time OctoPrint fails / hangs when first connecting I cooked up simple retry logic in your cool little plugin.

This retry logic is unconditional at present and verified on my end as fully functional.

Perhaps it can be config / flag driven. I really don't see the need myself but figured I'd share this little addition with you to do with as you please.