[gnome-keysign: 44/65] bluetoothreceive: remove redundant thread deferred for recv()
- From: Gitlab System User <gitlab src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keysign: 44/65] bluetoothreceive: remove redundant thread deferred for recv()
- Date: Tue, 3 Oct 2017 11:40:35 +0000 (UTC)
commit 46d99329e4ec49d2b6aa602f9437e8cc6cb0c669
Author: RyuzakiKK <aasonykk gmail com>
Date: Mon Aug 21 12:25:05 2017 +0200
bluetoothreceive: remove redundant thread deferred for recv()
keysign/bluetoothreceive.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/keysign/bluetoothreceive.py b/keysign/bluetoothreceive.py
index c365645..0504c53 100644
--- a/keysign/bluetoothreceive.py
+++ b/keysign/bluetoothreceive.py
@@ -61,7 +61,7 @@ class BluetoothReceive:
# try to receive until the sender closes the connection
try:
while True:
- part_message = yield threads.deferToThread(self.client_socket.recv, self.size)
+ part_message = self.client_socket.recv(self.size)
message += part_message
except BluetoothError as be:
if be.args[0] == "(104, 'Connection reset by peer')":
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]