Send traffic update to logTraffic().

pull/360/head
Christopher Young 2016-03-31 20:39:02 -04:00
rodzic 7ad31e9414
commit 4e5513ce95
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -188,6 +188,7 @@ func sendTrafficUpdates() {
// Send update to attached JSON client.
func registerTrafficUpdate(ti TrafficInfo) {
logTraffic(ti)
if !ti.Position_valid { // Don't send unless a valid position exists.
return
}