Skip to content
Permalink
Browse files

Re-apply previous commit with a typo fix

  • Loading branch information...
nerzhul committed Sep 4, 2017
1 parent 31e0f0e commit c05228fa6d446022cdf675865f9a420c95619313
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/network/connection.h
@@ -330,6 +330,18 @@ struct ConnectionCommand
bool raw = false;

ConnectionCommand() = default;
ConnectionCommand &operator=(const ConnectionCommand &other)
{
type = other.type;
address = other.address;
peer_id = other.peer_id;
channelnum = other.channelnum;
// We must copy the buffer here to prevent race condition
data = SharedBuffer<u8>(*other.data, other.data.getSize());
reliable = other.reliable;
raw = other.raw;
return *this;
}

void serve(Address address_)
{

0 comments on commit c05228f

Please sign in to comment.
You can’t perform that action at this time.