~xavi-garcia-mena/keeper/owncloud-test

« back to all changes in this revision

Viewing changes to src/service/keeper.cpp

  • Committer: Xavi Garcia Mena
  • Date: 2016-11-18 14:02:51 UTC
  • Revision ID: xavi.garcia.mena@canonical.com-20161118140251-41jbz1vjijva8gq1
Closing socket after setting it to the dbus reply

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include <QVector>
33
33
 
34
34
#include <algorithm> // std::find_if
 
35
#include <unistd.h>
35
36
 
36
37
namespace
37
38
{
286
287
                    qDebug("GREP RestoreManager returned socket %d", fd);
287
288
                    auto reply = msg.createReply();
288
289
                    reply << QVariant::fromValue(QDBusUnixFileDescriptor(fd));
 
290
                    close(fd);
289
291
                    bus.send(reply);
290
292
                }
291
293
            }