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
No related branches found
No related tags found
No related merge requests found
......@@ -38,9 +38,11 @@ ChanneledOutgoingTransfer::ChanneledOutgoingTransfer(const std::shared_ptr<Chann
ChanneledOutgoingTransfer::~ChanneledOutgoingTransfer()
{
channel_->setOnRecv({});
file_->setOnRecv({});
if (file_)
file_->setOnRecv({});
channel_->shutdown();
file_->close();
if (file_)
file_->close();
}
std::string
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment