Skip to content

Commit 5c428b1

Browse files
committed
Fix self.rlbot_server_port not being used
1 parent fd3757f commit 5c428b1

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

rlbot/interface.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ def connect(
214214
if time.time() > begin_time + next_warning:
215215
next_warning *= 2
216216
self.logger.warning(
217-
"Connection is being refused/aborted. Trying again ..."
217+
"Connection is being refused/aborted on %s:%s. Trying again ...",
218+
rlbot_server_ip,
219+
rlbot_server_port,
218220
)
219221
if not self.is_connected:
220222
raise ConnectionRefusedError(

rlbot/managers/match.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def connect(
7070
wants_ball_predictions: bool,
7171
close_between_matches: bool = True,
7272
rlbot_server_ip: str = RLBOT_SERVER_IP,
73-
rlbot_server_port: int = RLBOT_SERVER_PORT,
73+
rlbot_server_port: Optional[int] = None,
7474
):
7575
"""
7676
Connects to the RLBot server specifying the given settings.
@@ -85,7 +85,7 @@ def connect(
8585
wants_ball_predictions=wants_ball_predictions,
8686
close_between_matches=close_between_matches,
8787
rlbot_server_ip=rlbot_server_ip,
88-
rlbot_server_port=rlbot_server_port,
88+
rlbot_server_port=rlbot_server_port or self.rlbot_server_port,
8989
)
9090

9191
def wait_for_first_packet(self):
@@ -107,7 +107,7 @@ def start_match(
107107
self.ensure_server_started()
108108

109109
if not self.rlbot_interface.is_connected:
110-
self.rlbot_interface.connect(
110+
self.connect(
111111
wants_match_communications=False,
112112
wants_ball_predictions=False,
113113
close_between_matches=False,

rlbot/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.0.0-beta.33"
1+
__version__ = "2.0.0-beta.34"

0 commit comments

Comments
 (0)