-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed intermittent streamProperty streaming
- Loading branch information
Showing
1 changed file
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c62581f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Irrelon what's the reasoning behind this change? The documented behaviour suggests properties are only steamed if they've changed. This seems to change that and just stream everything all of the time which seems rather wasteful.
c62581f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure. I remember that there was a really good reason to do it though, something about values not streaming when they should be.
Once the data gets built up from the multiple stream sections the final string is checked against the previous one and only sent if different, so there is a larger check at the end of the process.
I know the change came because of something not working in the StarFlight project I was working on. Without this change the stream properties never updated or only updated in certain conditions. I realise that is really non-descript but it was 4 months ago :)
I'm happy to revert this change if it's not fixing a problem for others.
c62581f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.