Skip to content
Snippets Groups Projects
Commit 1e929ec4 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

channels: check for null

Change-Id: Id5df8a835428019ac0e11e7c722ee5d554c74a3a
parent 67aa151d
Branches
Tags
No related merge requests found
...@@ -38,8 +38,10 @@ ChanneledOutgoingTransfer::ChanneledOutgoingTransfer(const std::shared_ptr<Chann ...@@ -38,8 +38,10 @@ ChanneledOutgoingTransfer::ChanneledOutgoingTransfer(const std::shared_ptr<Chann
ChanneledOutgoingTransfer::~ChanneledOutgoingTransfer() ChanneledOutgoingTransfer::~ChanneledOutgoingTransfer()
{ {
channel_->setOnRecv({}); channel_->setOnRecv({});
if (file_)
file_->setOnRecv({}); file_->setOnRecv({});
channel_->shutdown(); channel_->shutdown();
if (file_)
file_->close(); file_->close();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment