summaryrefslogtreecommitdiffstats
path: root/bus/expirelist.c
diff options
context:
space:
mode:
Diffstat (limited to 'bus/expirelist.c')
-rw-r--r--bus/expirelist.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bus/expirelist.c b/bus/expirelist.c
index d718d9ff..58e1f6d1 100644
--- a/bus/expirelist.c
+++ b/bus/expirelist.c
@@ -17,7 +17,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
@@ -157,7 +157,8 @@ do_expiration_with_current_time (BusExpireList *list,
item->added_tv_usec,
tv_sec, tv_usec);
- if (elapsed >= (double) list->expire_after)
+ if (((item->added_tv_sec == 0) && (item->added_tv_usec == 0)) ||
+ ((list->expire_after > 0) && (elapsed >= (double) list->expire_after)))
{
_dbus_verbose ("Expiring an item %p\n", item);
@@ -173,7 +174,7 @@ do_expiration_with_current_time (BusExpireList *list,
break;
}
}
- else
+ else if (list->expire_after > 0)
{
double to_wait;