[X2Go-Commits] [x2goclient] 07/07: don't exit if sending event to http broker is failed.

git-admin at x2go.org git-admin at x2go.org
Fri Jun 14 16:57:33 CEST 2019


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2goclient.

commit 416a233c851d0000b9935c602288f2c8fbc35cfb
Author: Oleksandr Shneyder <o.shneyder at phoca-gmbh.de>
Date:   Fri Apr 5 09:32:00 2019 +0200

    don't exit if sending event to http broker is failed.
---
 src/httpbrokerclient.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/httpbrokerclient.cpp b/src/httpbrokerclient.cpp
index fc2cee3..07986fc 100644
--- a/src/httpbrokerclient.cpp
+++ b/src/httpbrokerclient.cpp
@@ -627,6 +627,11 @@ void HttpBrokerClient::slotRequestFinished ( QNetworkReply*  reply )
     if(reply->error() != QNetworkReply::NoError)
     {
         x2goDebug<<"Broker HTTP request failed with error: "<<reply->errorString();
+        if(reply == eventRequest)
+        {
+            //do not exit, just return the function
+            return;
+        }
         QMessageBox::critical(0,tr("Error"),reply->errorString());
         emit fatalHttpError();
         return;

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list