Skip to content

Commit 6f3e15e

Browse files
committed
do not parse message if height is 0
1 parent 8bc4104 commit 6f3e15e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/data.rs

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ impl ClientMessage {
3737
let height = data[5];
3838
let color = [data[6], data[7], data[8]];
3939

40+
if height == 0 {
41+
return None;
42+
}
43+
4044
Some(Self {
4145
action,
4246
x,

0 commit comments

Comments
 (0)