From 0d210e00c5beb8f83dbaea07cab408470c5ac215 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 7 Apr 2017 16:20:39 +0200 Subject: Send an error status messagebefore crashing. --- common/listener.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common') diff --git a/common/listener.cpp b/common/listener.cpp index 2f5bd47..983e438 100644 --- a/common/listener.cpp +++ b/common/listener.cpp @@ -88,6 +88,12 @@ Listener::~Listener() void Listener::emergencyAbortAllConnections() { + Sink::Notification n; + n.type = Sink::Notification::Status; + n.message = "The resource crashed."; + n.code = Sink::ApplicationDomain::ErrorStatus; + notify(n); + for (Client &client : m_connections) { if (client.socket) { SinkWarning() << "Sending panic"; -- cgit v1.2.3