diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-10-31 14:04:03 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-10-31 14:04:03 +0100 |
commit | e1a3aebafca9a9447a393100db4fc45943551630 (patch) | |
tree | 39672297b576e967bd2448d6a795e5485f6995b7 /common/resourceaccess.cpp | |
parent | 77b2173e73f16f33648226543788ea67096fb6d6 (diff) | |
download | sink-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.cpp | 4 |
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."; |