[gvfs] [FTP] properly reduce connection count when freeing connection
- From: Benjamin Otte <otte src gnome org>
- To: svn-commits-list gnome org
- Subject: [gvfs] [FTP] properly reduce connection count when freeing connection
- Date: Thu, 11 Jun 2009 05:20:02 -0400 (EDT)
commit 06e0e082a174b9fd4405af93ca66e8bfc9b888b9
Author: Benjamin Otte <otte gnome org>
Date: Thu Jun 4 18:33:39 2009 +0200
[FTP] properly reduce connection count when freeing connection
---
daemon/gvfsftptask.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/daemon/gvfsftptask.c b/daemon/gvfsftptask.c
index af889fe..c236817 100644
--- a/daemon/gvfsftptask.c
+++ b/daemon/gvfsftptask.c
@@ -283,7 +283,10 @@ g_vfs_ftp_task_release_connection (GVfsFtpTask *task)
g_cond_signal (task->backend->cond);
}
else
- g_vfs_ftp_connection_free (task->conn);
+ {
+ task->backend->connections--;
+ g_vfs_ftp_connection_free (task->conn);
+ }
g_mutex_unlock (task->backend->mutex);
task->conn = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]