Skip to content

Commit

Permalink
Update Libplanet/Net/Swarm.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Hong Minhee (洪 民憙) <hong.minhee@gmail.com>
  • Loading branch information
longfin and dahlia committed Aug 25, 2020
1 parent a0bf5dd commit f485112
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Libplanet/Net/Swarm.cs
Expand Up @@ -182,8 +182,10 @@ static Swarm()
public Peer AsPeer => Transport.AsPeer;

/// <summary>
/// The time the message was last received.
/// The last time when any message was arrived.
/// It can be <c>null</c> if no message has been arrived yet.
/// </summary>
public DateTimeOffset LastMessageTimestamp { get; private set; }
public DateTimeOffset? LastMessageTimestamp =>
Running ? Transport.LastMessageTimestamp : (DateTimeOffset?)null;

Expand Down

0 comments on commit f485112

Please sign in to comment.