lets not delete previous timer and just add one if there is none -
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 14 Dec 2011 10:22:49 +0000 (10:22 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 14 Dec 2011 10:22:49 +0000 (10:22 +0000)
less frees and allocs

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@66186 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_message_queue.c

index 1a313a5..5628ccc 100644 (file)
@@ -364,8 +364,8 @@ _edje_message_propornot_send(Edje *ed, Edje_Queue queue, Edje_Message_Type type,
      }
    if (_injob > 0)
      {
-        if (_job_loss_timer) ecore_timer_del(_job_loss_timer);
-        _job_loss_timer = ecore_timer_add(0.001, _edje_job_loss_timer, NULL);
+        if (!_job_loss_timer)
+          _job_loss_timer = ecore_timer_add(0.001, _edje_job_loss_timer, NULL);
      }
    else
      {