Skip to content

Commit

Permalink
Merge pull request #77 from jan2100/master
Browse files Browse the repository at this point in the history
Create Packet from bundleItem to fix wrong type when dispatching.
  • Loading branch information
adzialocha authored Apr 3, 2024
2 parents 8f6f7e1 + 0ce3f12 commit fbdfd11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default class EventHandler {
if (bundle.timetag.value.timestamp() < bundleItem.timetag.value.timestamp()) {
throw new Error('OSC Bundle timestamp is older than the timestamp of enclosed Bundles')
}
return this.dispatch(bundleItem)
return this.dispatch(new Packet(bundleItem))
} else if (bundleItem instanceof Message) {
const message = bundleItem
return this.notify(
Expand Down

0 comments on commit fbdfd11

Please sign in to comment.