Merge pull request #121 from mlaventure/only-send-live-if-needed
Send "live" event only if past events requested
This commit is contained in:
commit
8d2051232a
1 changed files with 5 additions and 5 deletions
|
@ -169,11 +169,11 @@ func (s *Supervisor) Events(from time.Time) chan Event {
|
||||||
c <- e
|
c <- e
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
// Notify the client that from now on it's live events
|
||||||
// Notify the client that from now on it's live events
|
c <- Event{
|
||||||
c <- Event{
|
Type: "live",
|
||||||
Type: "live",
|
Timestamp: time.Now(),
|
||||||
Timestamp: time.Now(),
|
}
|
||||||
}
|
}
|
||||||
return c
|
return c
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue