Merge pull request #121 from mlaventure/only-send-live-if-needed

Send "live" event only if past events requested
This commit is contained in:
Michael Crosby 2016-02-29 11:25:51 -08:00
commit 8d2051232a

View file

@ -169,11 +169,11 @@ func (s *Supervisor) Events(from time.Time) chan Event {
c <- e
}
}
}
// Notify the client that from now on it's live events
c <- Event{
Type: "live",
Timestamp: time.Now(),
// Notify the client that from now on it's live events
c <- Event{
Type: "live",
Timestamp: time.Now(),
}
}
return c
}