Skip to content

Commit 5402a29

Browse files
committed
can't use 'reason' string with bare quic close method
1 parent eae72ea commit 5402a29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xpra/net/quic/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def http_event_received(self, event: H3Event) -> None:
8686
log.warn(f"Warning: unhandled websocket http event {event}")
8787

8888
def close(self, code=QuicErrorCode.NO_ERROR, reason="closing") -> None:
89-
log("quic.close()")
89+
log(f"quic.close({code}, {reason})")
9090
if not self.closed:
9191
try:
9292
self.send_close(code, reason)
@@ -103,7 +103,7 @@ def send_close(self, code=QuicErrorCode.NO_ERROR, reason="") -> None:
103103
return
104104
if aioquic_version_info >= (1, 2):
105105
# we can send the error code and message
106-
quic.close(code, reason)
106+
quic.close(code)
107107
else:
108108
quic.close()
109109

0 commit comments

Comments
 (0)