move "check" to the very end instead of very start in packet_distribution
This commit is contained in:
parent
6c62980ffc
commit
610510eb7b
@ -116,13 +116,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
|
|||||||
qDebug() << "R:" << f_packet;
|
qDebug() << "R:" << f_packet;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (header == "CHECK") {
|
if (header == "decryptor") {
|
||||||
if (courtroom_constructed) {
|
|
||||||
last_ping = w_courtroom->get_ping();
|
|
||||||
w_courtroom->set_window_title(window_title + " [ping:" + QString::number(last_ping) + "]");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (header == "decryptor") {
|
|
||||||
if (f_contents.size() == 0)
|
if (f_contents.size() == 0)
|
||||||
goto end;
|
goto end;
|
||||||
|
|
||||||
@ -752,6 +746,12 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
|
|||||||
w_courtroom->stop_clock();
|
w_courtroom->stop_clock();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (header == "CHECK") {
|
||||||
|
if (courtroom_constructed) {
|
||||||
|
last_ping = w_courtroom->get_ping();
|
||||||
|
w_courtroom->set_window_title(window_title + " [ping:" + QString::number(last_ping) + "]");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
end:
|
end:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user