Conversation
|
This Pull seems problematic. In of TestEnvironment.getGeoTracker returning null, a GeoTracker will generated by the test (WebSockettest.js:220). This (internal) GeoTracker would not be stopped with your code. What was the problem you wanted to solve? Would it be a sufficient to stop the GeoTracker in case of an error in your errorhandler? |
|
Well, you are stopping the tracker when the measurement is complete (successful) and this was meant to handle the failure condition. |
|
Sorry, you are right. |
|
Ok, sounds reasonable. On a side note, are you certain that the Error state always transitions to the END state? Otherwise the sockets don't get closed. I would propose a stop() method that closes all resources (websockets, trackers,..) with checks to make it idempotent. |
|
You are right, the ERROR state will not always transition into an END state. |
Upon reaching the error state, stop the geo tracker. Prevents it from continueing to run in case of problems.