altf4 / RealTimeTactics

Real Time Tactics (RTT) Game
GNU General Public License v3.0
6 stars 4 forks source link

Don't respond to an Error message with another error #12

Open altf4 opened 12 years ago

altf4 commented 12 years ago

In much of the protocol handler code, we simply check for our desired message type. And if it's not correct, send out an error message. But we shouldn't reply to error messages with more error messages. For one, it's redundant. And two, it could possibly lead to an infinite loop.