open-dis / opendis7-java

Project to provide a complete type-safe Java implementation of the DIS Protocol version 7 (IEEE 1278.1-2012) and SISO-REF-010 Enumerations specifications.
Other
6 stars 5 forks source link

No call of registered typed listeners without at least registering one untyped #22

Closed cruncher64 closed 9 months ago

cruncher64 commented 9 months ago

In the toListeners method of DisThreadedNetworkInterface the first code block requires, that one has to register at least one untyped listener (i.e. listener without reference to DisPduType) to get the typed listeners to be informed. This is an unexpected behaviour and should be changed.

terry-norbraten commented 9 months ago

Agreed, that was a poorly written method, fixed in (9c23b2abc1e614cf584c8c153f2e5b4871a7e6bf).