bitfocus / companion-module-presentationtools-aps

MIT License
2 stars 1 forks source link

Fixed issue when more than one message arrive #11

Closed Engma90 closed 10 months ago

Engma90 commented 10 months ago

Issue: When more than one message received, only the oldest one will always be handled, then buffer.replace(message + this.delimiter, '') will remove it. When a new message arrives, the second oldest one will be handled so one message will always be delayed.

Solution: Changed messages to array and handled it as a queue