Skip to content

Commit

Permalink
function must match signature of 'flush_then_close'
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed May 16, 2024
1 parent 6e864a5 commit d084888
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/net/protocol/socket_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1148,9 +1148,9 @@ def do_flush_then_close(self, encoder: Callable | None = None,

def closing_already(packet_encoder: Callable | None = None,
packet_data=None,
flush_callback: Callable = noop) -> None:
done_callback: Callable = noop) -> None:
log("flush_then_close%s had already been called, this new request has been ignored",
(packet_encoder, packet_data, flush_callback))
(packet_encoder, packet_data, done_callback))

self.flush_then_close = closing_already
log("flush_then_close%s closed=%s", (encoder, last_packet, done_callback), self._closed)
Expand Down

0 comments on commit d084888

Please sign in to comment.