gnokii-commit
[Top][All Lists]
Advanced

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

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-44


From: Jan Derfinak
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-447-g2439500
Date: Wed, 27 Mar 2013 14:28:32 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".

The branch, master has been updated
       via  24395006a399bc9a5aa90708c6c9b817032b5345 (commit)
      from  04e95284144183ecc70a380cf9404cf8dc2503c2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=24395006a399bc9a5aa90708c6c9b817032b5345


commit 24395006a399bc9a5aa90708c6c9b817032b5345
Author: Jan Derfinak <address@hidden>
Date:   Wed Mar 27 15:27:43 2013 +0100

    Removed one second sleep in resend loop after a successfull send. (Pedro 
Aguilar)

diff --git a/smsd/ChangeLog b/smsd/ChangeLog
index 4b24388..054d237 100644
--- a/smsd/ChangeLog
+++ b/smsd/ChangeLog
@@ -1,3 +1,8 @@
+* Wed 27 Mar 2013 Jan Derfinak
+- Removed one second sleep in resend loop after a successfull send. (Pedro
+  Aguilar)
+
+
 * Mon 11 Jun 2012 Jan Derfinak
 - Version 1.5.3
 - Added possibility to specify non default gnokii config file (alonso acuña).
diff --git a/smsd/file.c b/smsd/file.c
index 19eaef2..40f41f4 100644
--- a/smsd/file.c
+++ b/smsd/file.c
@@ -217,7 +217,8 @@ GNOKII_API gint DB_Look (const gchar * const phone)
     numError = 0;
     do
     {
-      error = WriteSMS (&sms);
+      if ((error = WriteSMS (&sms)) == GN_ERR_NONE)
+        break;
       sleep (1);
     }
     while ((error == GN_ERR_TIMEOUT || error == GN_ERR_FAILED) && numError++ < 
3);
diff --git a/smsd/mysql.c b/smsd/mysql.c
index b90e5a0..64933a1 100644
--- a/smsd/mysql.c
+++ b/smsd/mysql.c
@@ -369,7 +369,8 @@ GNOKII_API gint DB_Look (const gchar * const phone)
     numError = 0;
     do
     {
-      error = WriteSMS (&sms);
+      if ((error = WriteSMS (&sms)) == GN_ERR_NONE)
+        break;
       sleep (1);
     }
     while ((error == GN_ERR_TIMEOUT || error == GN_ERR_FAILED) && numError++ < 
3);
diff --git a/smsd/pq.c b/smsd/pq.c
index 8c0c942..69574ea 100644
--- a/smsd/pq.c
+++ b/smsd/pq.c
@@ -396,7 +396,8 @@ GNOKII_API gint DB_Look (const gchar * const phone)
     numError = 0;
     do
     {
-      error = WriteSMS (&sms);
+      if ((error = WriteSMS (&sms)) == GN_ERR_NONE)
+        break;
       sleep (1);
     }
     while ((error == GN_ERR_TIMEOUT || error == GN_ERR_FAILED) && numError++ < 
3);
diff --git a/smsd/sqlite.c b/smsd/sqlite.c
index dd98f30..0b2d12d 100644
--- a/smsd/sqlite.c
+++ b/smsd/sqlite.c
@@ -206,7 +206,8 @@ GNOKII_API gint DB_Look(const gchar * const phone)
 
         numError = 0;
         do {
-            error = WriteSMS(&sms);
+            if ((error = WriteSMS (&sms)) == GN_ERR_NONE)
+                break;
             sleep(1);
         } while ((error == GN_ERR_TIMEOUT || error == GN_ERR_FAILED) && 
numError++ < 3);
 

-----------------------------------------------------------------------

Summary of changes:
 smsd/ChangeLog |    5 +++++
 smsd/file.c    |    3 ++-
 smsd/mysql.c   |    3 ++-
 smsd/pq.c      |    3 ++-
 smsd/sqlite.c  |    3 ++-
 5 files changed, 13 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

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