[network] fixes

This commit is contained in:
2020-03-28 17:18:12 +03:00
parent cfb9ddc8f8
commit 4bb2cd5be8
3 changed files with 3 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ import ru.m.puzzlez.proto.pack.Response;
user = new UserProto().setName('Anonimus #${UUID.generateRandom(new Random()).toString().split("-").shift()}');
storage.write(USER_KEY, user);
}
connection = ConnectionFactory.buildClientConnection("127.0.0.1", 6000, Response);
connection = ConnectionFactory.buildClientConnection("127.0.0.1", 5000, Response);
connection.handler.connect(onConnectionChange);
connection.receiveHandler.connect(onReceivePacket);
connection.connect();

View File

@@ -62,7 +62,7 @@ import ru.m.update.Updater;
updateButton.visible = true;
updateButton.text = 'Update ${info.version}';
}
});
}).catchError(error -> L.w('Update', 'failed: ${error}'));
}
private function sourceViewFactory(index:Int, source:ImageListSource):ButtonView {