clearSession clears the charging session without persisting it.
()
| 123 | |
| 124 | // clearSession clears the charging session without persisting it. |
| 125 | func (lp *Loadpoint) clearSession() { |
| 126 | // test guard |
| 127 | if lp.db == nil { |
| 128 | return |
| 129 | } |
| 130 | |
| 131 | lp.session = nil |
| 132 | } |
| 133 | |
| 134 | func (lp *Loadpoint) finalizeSessionEnergy() { |
| 135 | s := lp.session |
no outgoing calls
no test coverage detected