# | Line 133 | Line 133 | class TCPControlHandler extends Thread { | |
---|---|---|
133 | } | |
134 | else if(cmd.equals("DISCONNECT")) { | |
135 | run=false; | |
136 | + | if(_dataHandler != null) { |
137 | + | // Shut down the data handler |
138 | + | _dataHandler.shutdown(); |
139 | + | // destroy the reference to it ? |
140 | + | _dataHandler = null; |
141 | + | _logger.write(toString(), Logger.SYSMSG, "Data stream stopped at Clients Request"); |
142 | + | } |
143 | _socketOut.println("OK"); | |
144 | _socketOut.flush(); | |
145 | _socketIn.close(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |