Fix logic for telling the server snapshot versions.
This commit is contained in:
@@ -122,7 +122,7 @@ public enum ProtocolVersion {
|
|||||||
* @return the protocol version
|
* @return the protocol version
|
||||||
*/
|
*/
|
||||||
public int getProtocol() {
|
public int getProtocol() {
|
||||||
return protocol;
|
return protocol == -1 ? snapshotProtocol : protocol;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user