Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19255 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b70a062dc5
commit
a888357f39
@ -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 -
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user