diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-06-17 15:21:07 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-06-17 15:21:07 +0200 |
commit | 4ce74bd5eba2b4a9125d350e1e2bab50298fd82c (patch) | |
tree | 2cb4177201f696f94c47850b70d1e340ba9bff72 | |
parent | 6f7e0bcf8d0483770fa6e13b66953f9917cf84f3 (diff) |
socket: Make sure the socket is set to nil at the end of the block
-rw-r--r-- | osmo/OsmoStreamSocketBase.st | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/osmo/OsmoStreamSocketBase.st b/osmo/OsmoStreamSocketBase.st index e2d4e12..a6f7b2d 100644 --- a/osmo/OsmoStreamSocketBase.st +++ b/osmo/OsmoStreamSocketBase.st @@ -73,7 +73,8 @@ supervising the RX/TX process and re-starting.'> <category: 'connect'> tx_proc ifNotNil: [tx_proc terminate]. rx_proc ifNotNil: [rx_proc terminate]. - socket ifNotNil: [socket close. socket := nil] + socket ifNotNil: + [[socket close.] ensure: [ socket := nil ]]. ] driveDispatch [ |