mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-08-14 07:11:02 +00:00
fixed build error
This commit is contained in:
@@ -882,7 +882,7 @@ namespace torrents
|
||||
if (s->m_IncomingRequestsQueue.empty ())
|
||||
s->SendRequestedBlock (requestedBlock);
|
||||
else
|
||||
s->m_IncomingRequestsQueue.push_back (requestedBlock);
|
||||
s->m_IncomingRequestsQueue.emplace_back (std::move (requestedBlock));
|
||||
});
|
||||
}
|
||||
piece.SetIsSending (false);
|
||||
|
||||
@@ -167,6 +167,9 @@ namespace torrents
|
||||
struct RequestedBlock
|
||||
{
|
||||
uint32_t index, offset, length;
|
||||
RequestedBlock (uint32_t i, uint32_t o, uint32_t l): index(i), offset(0), length (l) {}
|
||||
RequestedBlock(const RequestedBlock& ) = default;
|
||||
RequestedBlock(RequestedBlock&& ) = default;
|
||||
};
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user