gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-mdb] branch master updated: sold out resetted when machine


From: gnunet
Subject: [taler-taler-mdb] branch master updated: sold out resetted when machine open
Date: Mon, 30 Dec 2019 15:28:20 +0100

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

dominik-hofer pushed a commit to branch master
in repository taler-mdb.

The following commit(s) were added to refs/heads/master by this push:
     new 57c757d  sold out resetted when machine open
57c757d is described below

commit 57c757d1d5ec3604525739b5eb4aa1ce3d560542
Author: Dominik Hofer <address@hidden>
AuthorDate: Mon Dec 30 15:28:15 2019 +0100

    sold out resetted when machine open
---
 src/main.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/main.c b/src/main.c
index dd80fb6..9eadbf4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2268,6 +2268,19 @@ handle_command (const char *hex,
           cleanup_payment (payment_activity);
           payment_activity = NULL;
         }
+        for (unsigned int i = 0; i < products_length; i++)
+                               {
+            if ( (sold_out_enabled) &&
+                 (0 != strcmp (products[i].description,
+                                                       "empty")) &&
+                                                                (GNUNET_YES == 
products[i].sold_out) )
+            {
+              GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+                          "Resetting sold out state of product %s\n",
+                          products[i].description);
+               products[i].sold_out = GNUNET_NO;         
+            }
+        }
         break;
       case VMC_READER_ENABLE:
         GNUNET_log (GNUNET_ERROR_TYPE_INFO,

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]