Commit 48168936 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

Maemo: Close old SFTP channel when creating a new one.

parent 0a9edfe1
......@@ -486,6 +486,11 @@ void MaemoDeployStep::setupMount()
void MaemoDeployStep::prepareSftpConnection()
{
// TODO: Close channel when upload has finished/failed/etc.
if (m_uploader) {
disconnect(m_uploader.data(), 0, this, 0);
m_uploader->closeChannel();
}
m_uploader = m_connection->createSftpChannel();
connect(m_uploader.data(), SIGNAL(initialized()), this,
SLOT(handleSftpChannelInitialized()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment