[chronojump/FS-LCD-Menu] Networks if rfid is not found on server, show this error instead of server disconnected



commit bcad7c4d349dfdf65ab9aa316844bb191f0849e7
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Dec 1 17:44:43 2021 +0100

    Networks if rfid is not found on server, show this error instead of server disconnected

 src/json/compujump.cs | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/json/compujump.cs b/src/json/compujump.cs
index c42121f77..4a7def29f 100644
--- a/src/json/compujump.cs
+++ b/src/json/compujump.cs
@@ -68,7 +68,9 @@ public class JsonCompujump : Json
 
                dataStream.Write (Encoding.UTF8.GetBytes(js), 0, js.Length);
                dataStream.Close ();
-               
+
+               connected = true;
+
                HttpWebResponse response;
                if(! getHttpWebResponse (request, out response, "Cannot get person by RFID."))
                        return person;
@@ -91,7 +93,6 @@ public class JsonCompujump : Json
                        person = personDeserialize(responseFromServer);
                }
 
-               connected = true;
                return person;
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]