diff options
author | Louis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk> | 2010-11-29 13:49:12 -0500 |
---|---|---|
committer | Louis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk> | 2010-12-03 15:51:12 -0500 |
commit | f5140e786f2faa2191479fd3599de30f71ab38df (patch) | |
tree | 64b75e8d0a35d73b9f6edf322eb11beb0397c1f7 | |
parent | fc33649dca51327e47f38781c21bc7e49df94943 (diff) |
bugfix: don't call timeout_add with a float
That was causing a warning
-rw-r--r-- | butterfly/channel/file_transfer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/butterfly/channel/file_transfer.py b/butterfly/channel/file_transfer.py index 6d3c270..053fa4f 100644 --- a/butterfly/channel/file_transfer.py +++ b/butterfly/channel/file_transfer.py @@ -305,7 +305,7 @@ class ButterflyFileTransferChannel(telepathy.server.ChannelTypeFileTransfer): # Protect against clock skew, if the interval is negative the # worst thing that can happen is that we wait an extra second # before emitting the signal. - interval = abs(interval) + interval = int(abs(interval)) if interval > 1000: emit_signal() |