summaryrefslogtreecommitdiff
path: root/AT91SAM7S256
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-05-03 15:07:56 +0800
committerTat-Chee Wan (USM)2011-05-03 15:07:56 +0800
commit07211672dfa84bd8f276f0ae97341216a099467c (patch)
treea914a5e212c07ff90231b66b766d9a9df513c651 /AT91SAM7S256
parent166fe4fbb3de88850d327e829b1a768d99ab26cc (diff)
parent6e30d57a27a7d5ee35482831fa82d4f4dfb72aa5 (diff)
Merge branch 'master' of ssh://svc.cs.usm.my/~/gitrepo-bare/armdebug
Diffstat (limited to 'AT91SAM7S256')
-rw-r--r--AT91SAM7S256/armdebug/nxt-python-fantom/nxt/fantomglue.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/AT91SAM7S256/armdebug/nxt-python-fantom/nxt/fantomglue.py b/AT91SAM7S256/armdebug/nxt-python-fantom/nxt/fantomglue.py
index 6281c95..178d7b0 100644
--- a/AT91SAM7S256/armdebug/nxt-python-fantom/nxt/fantomglue.py
+++ b/AT91SAM7S256/armdebug/nxt-python-fantom/nxt/fantomglue.py
@@ -53,7 +53,8 @@ class BluetoothSocket:
return self._sock.read( numbytes )
def close(self):
- del self._sock
+ if sef._sock is not None:
+ del self._sock
class BluetoothError(IOError):
pass
@@ -107,4 +108,5 @@ class USBSocket:
return self._sock.read( numbytes )
def close(self):
- del self._sock
+ if sef._sock is not None:
+ del self._sock