hpcc-systems/HPCC-Platform — pull request #1711 by rengolin (2012-02-28 13:27:07+00:00)
Title: Dependencies stopped twice

As described by the comment, the dependencies were being stopped twice. And now, due to commit 53a89d0 and the need to run Dali files as local (#886).

```updateWorkUnitResult()``` that was erroneously being called twice, was asserting on the lack of ```writer``` that had been removed by the first ```stop()```.

Applying this patch is the last things to make my patch to fix #886 work (ready, but coming after this). Just thought this would deserve a patch on its own.

I've ran ```roxie``` and ```eclagent``` self tests. Not sure how reliable they catch errors like this.

An alternative (if this duplicated stop was there for a reason), is to not assert and just skip, since the activity is going to be destroyed anyway. I prefer this, since it's cleaner and simpler.