HTTP media IO: fix another case of crash.
This commit is contained in:
@@ -132,11 +132,14 @@ HTTPMediaIO::~HTTPMediaIO()
|
|||||||
{
|
{
|
||||||
CALLED();
|
CALLED();
|
||||||
|
|
||||||
|
if (fReq != NULL)
|
||||||
|
{
|
||||||
fReq->Stop();
|
fReq->Stop();
|
||||||
status_t status;
|
status_t status;
|
||||||
wait_for_thread(fReqThread, &status);
|
wait_for_thread(fReqThread, &status);
|
||||||
|
|
||||||
delete fReq;
|
delete fReq;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user