Do remove autosync timeout on close

This commit is contained in:
Yevgen Muntyan 2014-11-30 15:27:20 -08:00
parent abf4aab85f
commit 72c3580fbb

View File

@ -384,7 +384,7 @@ _moo_edit_closed (MooEdit *doc)
doc->priv->file_monitor_id = 0;
}
if (doc->priv->sync_timeout_id == 0)
if (doc->priv->sync_timeout_id)
{
g_source_remove (doc->priv->sync_timeout_id);
doc->priv->sync_timeout_id = 0;