aridevelopment-de / fabric-packet-logger

Client-side packet logger with web-ui
https://modrinth.com/mod/packetlogger
GNU Affero General Public License v3.0
22 stars 6 forks source link

Fix possible race condition when saving packet bufs #27

Open Ari24-cb24 opened 1 year ago

Ari24-cb24 commented 1 year ago

Since I "predict" the next index of the packet, there could be a race condition happening. Tried this with debugging and halting the code and seems like it does, giving the frontend a totally wrong index causing wrong data being displayed.

Either: