[chronojump] Networks if rfid is not found on server, show this error instead of server disconnected
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Networks if rfid is not found on server, show this error instead of server disconnected
- Date: Wed, 1 Dec 2021 16:45:12 +0000 (UTC)
commit a6c888642ae207e3e54638c88025b520803f0b97
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]