[gvfs/ftp-reorg: 4/8] [FTP] properly reduce connection count when freeing connection
- From: Benjamin Otte <otte src gnome org>
- To: svn-commits-list gnome org
- Subject: [gvfs/ftp-reorg: 4/8] [FTP] properly reduce connection count when freeing connection
- Date: Thu, 4 Jun 2009 15:46:23 -0400 (EDT)
commit 817d3cd1d5f80add0040283f9b90e8877e43149f
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]