don't pop request until we're done with it (#1085)

This commit is contained in:
Steven Siloti 2016-09-12 23:37:00 -07:00 committed by Arvid Norberg
parent dc4d9af2e6
commit 850eca1f21
1 changed files with 1 additions and 1 deletions

View File

@ -978,9 +978,9 @@ void web_peer_connection::incoming_payload(char const* buf, int len)
, "piece: %d start: %d len: %d"
, front_request.piece, front_request.start, front_request.length);
#endif
m_requests.pop_front();
incoming_piece(front_request, &m_piece[0]);
m_requests.pop_front();
m_piece.clear();
}
}