Skip to content

Commit

Permalink
Workaround for get_player_information
Browse files Browse the repository at this point in the history
'-1' as value is handled as an error. If there are no RTT updates upon fast connect, set_player_information returned nil.
  • Loading branch information
SmallJoker committed Mar 8, 2020
1 parent 0e88176 commit 23c907b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/network/connection.h
Expand Up @@ -612,16 +612,16 @@ class Peer {
struct rttstats {
float jitter_min = FLT_MAX;
float jitter_max = 0.0f;
float jitter_avg = -1.0f;
float jitter_avg = -2.0f;
float min_rtt = FLT_MAX;
float max_rtt = 0.0f;
float avg_rtt = -1.0f;
float avg_rtt = -2.0f;

rttstats() = default;
};

rttstats m_rtt;
float m_last_rtt = -1.0f;
float m_last_rtt = -2.0f;

// current usage count
unsigned int m_usage = 0;
Expand Down

0 comments on commit 23c907b

Please sign in to comment.