Skip to content

Commit 8360454

Browse files
juleqsebi2k1
authored andcommitted
Update rawchannel.cc (sebi2k1#79)
Fixed send arguments, now including the flags variable.
1 parent f34d1a6 commit 8360454

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rawchannel.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ class RawChannel : public Nan::ObjectWrap
340340
if (hw->m_NonBlockingSend)
341341
flags = MSG_DONTWAIT;
342342

343-
int i = send(hw->m_SocketFd, &frame, sizeof(struct can_frame), 0);
343+
int i = send(hw->m_SocketFd, &frame, sizeof(struct can_frame), flags);
344344

345345
info.GetReturnValue().Set(i);
346346
}

0 commit comments

Comments
 (0)