Skip to content

Commit

Permalink
- implemented requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TimGroeneboom committed Dec 2, 2024
1 parent f22b3b1 commit 10e5a6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions system_modules/naposc/src/oscsender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ namespace nap

bool OSCSender::send(const OSCEvent& oscEvent)
{
if(!mSocket)
if(mSocket!=nullptr)
return false;

std::size_t buffer_size = oscEvent.getSize();
Expand All @@ -71,7 +71,7 @@ namespace nap

// Grow the buffer based on the number of bytes that need allocation
// Always allocate more than the bare minimum, that's why we multiply by 2.
if (mBuffer.size() < buffer_size)
if(mBuffer.size() < buffer_size)
mBuffer.resize(buffer_size);

// Create packet
Expand Down Expand Up @@ -103,7 +103,7 @@ namespace nap
buffer_size += sizeof(osc::BundleTerminator);

// Grow the buffer based on the number of bytes that need allocation
if (mBuffer.size() < buffer_size)
if(mBuffer.size() < buffer_size)
mBuffer.resize(buffer_size);

// Create packet, grow buffer if necessary
Expand Down Expand Up @@ -149,7 +149,7 @@ namespace nap

void OSCSender::addEvent(OSCEventPtr oscEvent)
{
if(!mSocket)
if(mSocket!=nullptr)
return;

mEventQueueDataSize += (oscEvent->getSize());
Expand Down

0 comments on commit 10e5a6b

Please sign in to comment.