diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-11 22:23:51 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-11 22:23:51 +0200 |
commit | 4b85680e9014efbd74ec5a4c4032e65b5494d6f9 (patch) | |
tree | d772c7ca91d06c67657c0dcf49444169727d592c /common/resourceaccess.cpp | |
parent | 69d571248864ef0c4d810080aae2990fb2c27381 (diff) | |
download | sink-4b85680e9014efbd74ec5a4c4032e65b5494d6f9.tar.gz sink-4b85680e9014efbd74ec5a4c4032e65b5494d6f9.zip |
Update the status if the resource crashed
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 c878143..7b4d839 100644 --- a/common/resourceaccess.cpp +++ b/common/resourceaccess.cpp | |||
@@ -483,6 +483,10 @@ void ResourceAccess::connectionError(QLocalSocket::LocalSocketError error) | |||
483 | const bool resourceCrashed = d->partialMessageBuffer.contains("PANIC"); | 483 | const bool resourceCrashed = d->partialMessageBuffer.contains("PANIC"); |
484 | if (resourceCrashed) { | 484 | if (resourceCrashed) { |
485 | SinkError() << "The resource crashed!"; | 485 | SinkError() << "The resource crashed!"; |
486 | mResourceStatus = Sink::ApplicationDomain::ErrorStatus; | ||
487 | Sink::Notification n; | ||
488 | n.type = Sink::Notification::Status; | ||
489 | emit notification(n); | ||
486 | d->abortPendingOperations(); | 490 | d->abortPendingOperations(); |
487 | } else if (error == QLocalSocket::PeerClosedError) { | 491 | } else if (error == QLocalSocket::PeerClosedError) { |
488 | SinkLog() << "The resource closed the connection."; | 492 | SinkLog() << "The resource closed the connection."; |