Nulling dispacket on page load failures to prevent segmentation faults.
This commit is contained in:
parent
cf477ea401
commit
e9364d8d78
1 changed files with 2 additions and 0 deletions
|
@ -769,6 +769,7 @@ namespace Mist {
|
||||||
buffer.insert(nxt);
|
buffer.insert(nxt);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
thisPacket.null();
|
||||||
dropTrack(nxt.tid, "page load failure", true);
|
dropTrack(nxt.tid, "page load failure", true);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -821,6 +822,7 @@ namespace Mist {
|
||||||
MEDIUM_MSG("Next page for track %u starts at %llu.", nxt.tid, nxt.time);
|
MEDIUM_MSG("Next page for track %u starts at %llu.", nxt.tid, nxt.time);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
thisPacket.null();
|
||||||
dropTrack(nxt.tid, "page load failure");
|
dropTrack(nxt.tid, "page load failure");
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue