Skip to content

Commit 31e0f0e

Browse files
committedSep 4, 2017
Revert "Network: fix a concurrency problem, by re-adding a copy in ConnectionCommand"
This reverts commit 5b04f5e.
1 parent 5b04f5e commit 31e0f0e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed
 

‎src/network/connection.h

-12
Original file line numberDiff line numberDiff line change
@@ -330,18 +330,6 @@ struct ConnectionCommand
330330
bool raw = false;
331331

332332
ConnectionCommand() = default;
333-
ConnectionCommand &operator=(const ConnectionCommand &other)
334-
{
335-
type = other.type;
336-
address = other.address;
337-
peer_id = other.peer_id;
338-
channelnum = other.channelnum;
339-
// We must copy the buffer here to prevent race condition
340-
data = SharedBuffer<u8>(*other.data, other.data.getSize());
341-
reliable = other.reliable;
342-
raw = other.reliable;
343-
return *this;
344-
}
345333

346334
void serve(Address address_)
347335
{

0 commit comments

Comments
 (0)
Please sign in to comment.