Skip to content

Commit

Permalink
sdk: Fix crash after restarting the stream
Browse files Browse the repository at this point in the history
The memory location where the frames should be places was not being
cleared. Therefore when reading a control, the Network object was
expecting a frame.

Signed-off-by: Dan Nechita <[email protected]>
  • Loading branch information
dNechita committed Sep 21, 2023
1 parent b8b19b3 commit 580df32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/connections/network/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ int Network::callback_function(struct lws *wsi,
} else {
//expect content that is not wrapped in a protobuf message
memcpy(rawPayloads[connectionId], static_cast<char *>(in), len);
rawPayloads[connectionId] == nullptr;
rawPayloads[connectionId] = nullptr;
recv_data_error = 0;
Data_Received[connectionId] = true;

Expand Down

0 comments on commit 580df32

Please sign in to comment.