From a7cd3148268d6910aec7dad1a610870e982a9136 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alex=20N=C3=B8rgaard?= <Umbra@AbstractUmbra.dev>
Date: Mon, 24 Jun 2024 15:03:49 +0100
Subject: [PATCH] fix bug in async rcon (#33)

fix bug in async rcon
---
 rcon/source/async_rcon.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rcon/source/async_rcon.py b/rcon/source/async_rcon.py
index 095873a..d49204e 100644
--- a/rcon/source/async_rcon.py
+++ b/rcon/source/async_rcon.py
@@ -77,7 +77,7 @@ async def rcon(
         raise WrongPassword()
 
     request = Packet.make_command(command, *arguments, encoding=encoding)
-    response = await communicate(reader, writer, request, raise_unexpected_terminator)
+    response = await communicate(reader, writer, request, raise_unexpected_terminator=raise_unexpected_terminator)
     await close(writer)
 
     if enforce_id and response.id != request.id: