Skip to content

Commit

Permalink
Flush attributes as soon as they are set
Browse files Browse the repository at this point in the history
This is inefficient in terms of network traffic, but it means governors
are saved immediately, which is usually what the user wants.
  • Loading branch information
lmoureaux committed Jun 30, 2024
1 parent ea7e27c commit 9254ee0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/attribute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,9 @@ void attribute_set(int key, int id, int x, int y, size_t data_length,
} else {
attribute_hash->remove(akey);
}

// Sync with the server
attribute_flush();
}

/**
Expand Down

0 comments on commit 9254ee0

Please sign in to comment.