Skip to content

Commit 23c907b

Browse files
committedMar 8, 2020
Workaround for get_player_information
'-1' as value is handled as an error. If there are no RTT updates upon fast connect, set_player_information returned nil.
1 parent 0e88176 commit 23c907b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

Diff for: ‎src/network/connection.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -612,16 +612,16 @@ class Peer {
612612
struct rttstats {
613613
float jitter_min = FLT_MAX;
614614
float jitter_max = 0.0f;
615-
float jitter_avg = -1.0f;
615+
float jitter_avg = -2.0f;
616616
float min_rtt = FLT_MAX;
617617
float max_rtt = 0.0f;
618-
float avg_rtt = -1.0f;
618+
float avg_rtt = -2.0f;
619619

620620
rttstats() = default;
621621
};
622622

623623
rttstats m_rtt;
624-
float m_last_rtt = -1.0f;
624+
float m_last_rtt = -2.0f;
625625

626626
// current usage count
627627
unsigned int m_usage = 0;

0 commit comments

Comments
 (0)
Please sign in to comment.