Commit 183e3f72 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Wait a bit before restarting the connection

This prevents a possible race between gpgconf shutting down all
daemons and us triggering the start of a new scdaemon after the old
one has been shut down but before gpg-agent has been shut down. This
could lead to an orphaned scdaemon.

GnuPG-bug-id: 5775
parent e7d903e3
......@@ -78,6 +78,7 @@ void DeviceInfoWatcher::Worker::poll()
const bool finished = mContext->poll();
if (finished) {
qCDebug(KLEOPATRA_LOG) << "DeviceInfoWatcher::Worker::poll: context finished with" << mContext->lastError();
QMetaObject::invokeMethod(this, "start", Qt::QueuedConnection);
} else {
QMetaObject::invokeMethod(this, "poll", Qt::QueuedConnection);
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