Fix a bug if emulated client don't use key.

This commit is contained in:
anthonyraymond 2017-03-29 19:02:01 +02:00
parent f2f3ae7ed5
commit 0c4cd448b6

View file

@ -72,7 +72,7 @@ class TorrentClientConfig {
Optional<String> createNewKey() {
if (Objects.isNull(this.keyInfo)) {
Optional.empty();
return Optional.empty();
}
String key;
switch (this.peerIdInfo.getType()) {