ShadowKatStudios / OC-Minitel

Easy-to-implement networking protocol for OpenComputers
https://oc.shadowkat.net/minitel/
Mozilla Public License 2.0
41 stars 12 forks source link

Do not unregister listeners on unexpected data #36

Closed Hawk777 closed 1 year ago

Hawk777 commented 3 years ago

If a registered event listener callback returns false, the listener is unregistered. A network packet arriving on a different port, or a message with a missing part, should not cause the syslog system to shut down. Return nil instead of false if those sanity checks fail, to keep the listener registered.

XeonSquared commented 1 year ago

Oops, didn't know about that little detail. Will have to investigate other services.