*** empty log message ***

This commit is contained in:
Arvid Norberg 2004-01-04 04:35:25 +00:00
parent 8a3d994416
commit 6b356eed3d
1 changed files with 2 additions and 2 deletions

View File

@ -268,8 +268,6 @@ namespace libtorrent
assert(m_recv_pos > 0);
int packet_type = m_recv_buffer[0];
if (packet_type > msg_cancel || packet_type < msg_choke)
throw protocol_error("unknown message id");
switch (packet_type)
{
@ -691,6 +689,8 @@ namespace libtorrent
#endif
break;
}
default:
throw protocol_error("unknown message id");
}
assert(m_recv_pos == m_packet_size);
return true;