From 4b85680e9014efbd74ec5a4c4032e65b5494d6f9 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 11 Jul 2016 22:23:51 +0200 Subject: Update the status if the resource crashed --- common/resourceaccess.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common') diff --git a/common/resourceaccess.cpp b/common/resourceaccess.cpp index c878143..7b4d839 100644 --- a/common/resourceaccess.cpp +++ b/common/resourceaccess.cpp @@ -483,6 +483,10 @@ void ResourceAccess::connectionError(QLocalSocket::LocalSocketError error) const bool resourceCrashed = d->partialMessageBuffer.contains("PANIC"); if (resourceCrashed) { SinkError() << "The resource crashed!"; + mResourceStatus = Sink::ApplicationDomain::ErrorStatus; + Sink::Notification n; + n.type = Sink::Notification::Status; + emit notification(n); d->abortPendingOperations(); } else if (error == QLocalSocket::PeerClosedError) { SinkLog() << "The resource closed the connection."; -- cgit v1.2.3