diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-02-08 19:16:04 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-02-08 19:16:04 +0000 |
commit | 4509656fd05de1590d5dd0d1e6429957861d00e0 (patch) | |
tree | d2f24f7380c99ec73e5b92b8d8e1c4250ce854c0 /src/trg-main-window.c | |
parent | 2a1c6fc96ff03c84723ca1fb7d3a48e0cd3df115 (diff) |
no need to adjust the updateSerial depending on the updateMutex... just increment before the update :o)
Diffstat (limited to 'src/trg-main-window.c')
-rw-r--r-- | src/trg-main-window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c index fe650c0..b8fdd3f 100644 --- a/src/trg-main-window.c +++ b/src/trg-main-window.c @@ -953,6 +953,8 @@ on_torrent_get_multipurpose(JsonObject * response, gboolean first, g_mutex_lock(client->updateMutex); + client->updateSerial++; + trg_torrent_model_update(priv->torrentModel, priv->client, response, &stats, first); @@ -964,8 +966,6 @@ on_torrent_get_multipurpose(JsonObject * response, gboolean first, g_timeout_add_seconds(3, trg_update_torrents_timerfunc, data); - client->updateSerial++; - gdk_threads_leave(); response_unref(response); } |