summaryrefslogtreecommitdiffstats
path: root/common/resourceaccess.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-10-31 14:04:03 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-10-31 14:04:03 +0100
commite1a3aebafca9a9447a393100db4fc45943551630 (patch)
tree39672297b576e967bd2448d6a795e5485f6995b7 /common/resourceaccess.cpp
parent77b2173e73f16f33648226543788ea67096fb6d6 (diff)
downloadsink-e1a3aebafca9a9447a393100db4fc45943551630.tar.gz
sink-e1a3aebafca9a9447a393100db4fc45943551630.zip
Ensure we get an appropriate exit code when a resource crashes.
Diffstat (limited to 'common/resourceaccess.cpp')
-rw-r--r--common/resourceaccess.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/resourceaccess.cpp b/common/resourceaccess.cpp
index a3478e6..8b70684 100644
--- a/common/resourceaccess.cpp
+++ b/common/resourceaccess.cpp
@@ -526,6 +526,10 @@ void ResourceAccess::connectionError(QLocalSocket::LocalSocketError error)
526 Sink::Notification n; 526 Sink::Notification n;
527 n.type = Sink::Notification::Status; 527 n.type = Sink::Notification::Status;
528 emit notification(n); 528 emit notification(n);
529 Sink::Notification crashNotification;
530 crashNotification.type = Sink::Notification::Error;
531 crashNotification.code = Sink::ApplicationDomain::ResourceCrashedError;
532 emit notification(crashNotification);
529 d->abortPendingOperations(); 533 d->abortPendingOperations();
530 } else if (error == QLocalSocket::PeerClosedError) { 534 } else if (error == QLocalSocket::PeerClosedError) {
531 SinkLog() << "The resource closed the connection."; 535 SinkLog() << "The resource closed the connection.";