[couchdb-glib] Added missing call to couchdb_get_hostname()



commit 7c90a1b2696362313d2453e9fcf3f75d58212ad6
Author: Rodrigo Moya <rodrigo gnome-db org>
Date:   Thu Jan 7 14:35:24 2010 +0100

    Added missing call to couchdb_get_hostname()

 couchdb-glib/dbwatch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/couchdb-glib/dbwatch.c b/couchdb-glib/dbwatch.c
index dade2d2..28faf67 100644
--- a/couchdb-glib/dbwatch.c
+++ b/couchdb-glib/dbwatch.c
@@ -124,7 +124,7 @@ dbwatch_new (CouchDB *couchdb, const gchar *dbname, gint update_seq)
 	watch->last_update_seq = update_seq;
 
 	/* Set timeout to check for changes every 5 minutes*/
-	if (g_str_has_prefix (watch->couchdb->hostname, "http://127.0.0.1";))
+	if (g_str_has_prefix (couchdb_get_hostname (watch->couchdb), "http://127.0.0.1";))
 		timeout = LOCAL_TIMEOUT_SECONDS;
 	else
 		timeout = REMOTE_TIMEOUT_SECONDS;



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