Minor cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19255 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-11-11 12:22:48 +00:00
parent b70a062dc5
commit a888357f39

View File

@ -439,16 +439,19 @@ FragmentPacket::Hash(void *_packet, const void *_key, uint32 range)
}
void
/*static*/ void
FragmentPacket::StaleTimer(struct net_timer *timer, void *data)
{
BenaphoreLocker locker(&sFragmentLock);
hash_remove(sFragmentHash, (FragmentPacket *)data);
FragmentPacket *packet = (FragmentPacket *)data;
TRACE(("Assembling FragmentPacket %p timed out!\n", packet));
TRACE(("Assembling FragmentPacket timed out!\n"));
delete (FragmentPacket *)data;
BenaphoreLocker locker(&sFragmentLock);
hash_remove(sFragmentHash, packet);
delete packet;
}
// #pragma mark -