minor fix
This commit is contained in:
parent
acc539c342
commit
52a0394603
@ -265,7 +265,7 @@ fn readMessage(self: *Self, _: anytype) !void {
|
|||||||
|
|
||||||
// make sure to avoid race conditions
|
// make sure to avoid race conditions
|
||||||
// we free this payload eventually once our event executes
|
// we free this payload eventually once our event executes
|
||||||
payload.* = raw.value.d.?;
|
if (raw.value.d) |p| payload.* = p;
|
||||||
|
|
||||||
switch (@as(Opcode, @enumFromInt(raw.value.op))) {
|
switch (@as(Opcode, @enumFromInt(raw.value.op))) {
|
||||||
.Dispatch => {
|
.Dispatch => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user