diff options
author | aleherbau | 2011-05-19 12:48:10 +0000 |
---|---|---|
committer | aleherbau | 2011-05-19 12:48:10 +0000 |
commit | a1dfa9cc409eb736911e0be32b45f57a866e34c5 (patch) | |
tree | 97b7fa6c87076479630bdbc6a098d454264798e5 /python/src/tcf/channel/ChannelTCP.py | |
parent | 506dcea466abc2e93a508ddfbe2814d1046f3635 (diff) | |
download | org.eclipse.tcf-a1dfa9cc409eb736911e0be32b45f57a866e34c5.tar.gz org.eclipse.tcf-a1dfa9cc409eb736911e0be32b45f57a866e34c5.tar.xz org.eclipse.tcf-a1dfa9cc409eb736911e0be32b45f57a866e34c5.zip |
TCF Python: Implemented Memory and MemoryMap service proxies, code cleanup
Diffstat (limited to 'python/src/tcf/channel/ChannelTCP.py')
-rw-r--r-- | python/src/tcf/channel/ChannelTCP.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/src/tcf/channel/ChannelTCP.py b/python/src/tcf/channel/ChannelTCP.py index 1538ca067..ae020237b 100644 --- a/python/src/tcf/channel/ChannelTCP.py +++ b/python/src/tcf/channel/ChannelTCP.py @@ -30,9 +30,9 @@ class ChannelTCP(StreamChannel): channel.socket = sock channel._onSocketConnected(None) protocol.invokeLater(CreateSocket()) - + def _onSocketConnected(self, x): - if x: + if x: self.terminate(x) self.closed = True if self.closed: @@ -44,7 +44,7 @@ class ChannelTCP(StreamChannel): else: self.started = True self.start() - + def get(self): if self.closed: return -1 try: |