1
Vote

Optional property time_to_live is always filled in message (also when 0)

description

The optional property time_to_live is always filled in message, also when the LifeTime <= 0.

Change this code:
result.Add("time_to_live", LifeTime.ToString());
into
if (LifeTime > 0)
{
    result.Add("time_to_live", Convert.ToString(LifeTime));
}

comments