wayland-transpositor / wprs

Apache License 2.0
282 stars 6 forks source link

fix attach crash #10

Closed nicolasavru closed 3 months ago

nicolasavru commented 3 months ago

If we happen to reattach right between when a server sends a buffer and when it sends the commit message, the buffer size in the commit message will be 0 and we should ignore it. The odds of this happening are actually not bad since buffer and commit messages are the vast majority of the messages sent and sending a buffer takes a few ms, a decent percentage of the time between frames.