mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
relay: fix undefined reference
This commit is contained in:
parent
18c68f0f4f
commit
e52e92cdf6
1 changed files with 4 additions and 3 deletions
|
@ -173,11 +173,12 @@ json_t * RelayConnection::toJson() const
|
|||
|
||||
void RelayConnection::write()
|
||||
{
|
||||
int ret;
|
||||
if (outgoingFrames.empty())
|
||||
return;
|
||||
|
||||
std::shared_ptr<Frame> fr = outgoingFrames.front();
|
||||
auto fr = outgoingFrames.front();
|
||||
|
||||
ret = lws_write(wsi, fr->data(), fr->size(), LWS_WRITE_BINARY);
|
||||
int ret = lws_write(wsi, fr->data(), fr->size(), LWS_WRITE_BINARY);
|
||||
if (ret < 0)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue