Commit aa434321 authored by Wayne Davison's avatar Wayne Davison

Don't write out the protocol_version number in read_batch mode.

parent 36119893
......@@ -37,13 +37,9 @@ extern int protocol_version;
void setup_protocol(int f_out,int f_in)
{
if (remote_protocol == 0) {
if (am_server) {
remote_protocol = read_int(f_in);
if (!read_batch)
write_int(f_out, protocol_version);
} else {
write_int(f_out, protocol_version);
remote_protocol = read_int(f_in);
}
remote_protocol = read_int(f_in);
if (protocol_version > remote_protocol)
protocol_version = remote_protocol;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment