Skip to content

Commit

Permalink
all protocol instances are expected to have a start_time
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jan 24, 2024
1 parent b2a2581 commit f1342ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xpra/net/rfb/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import os
import struct
from time import monotonic
from socket import error as socket_error
from queue import Queue

Expand Down Expand Up @@ -34,6 +35,7 @@ class RFBProtocol:
def __init__(self, scheduler, conn, process_packet_cb, data=b""):
assert scheduler is not None
assert conn is not None
self.start_time = monotonic()
self.timeout_add = scheduler.timeout_add
self.idle_add = scheduler.idle_add
self._conn = conn
Expand Down

0 comments on commit f1342ad

Please sign in to comment.