new: implemented api.rest.record and api.rest.replay

This commit is contained in:
evilsocket 2019-03-29 16:20:31 +01:00
commit 0a31ac8167
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
76 changed files with 7610 additions and 48 deletions

View file

@ -111,7 +111,16 @@ func (p *EventPool) Add(tag string, data interface{}) {
// broadcast the event to every listener
for _, l := range p.listeners {
l <- e
// do not block!
go func(ch *chan Event) {
// channel might be closed
defer func() {
if recover() != nil {
}
}()
*ch <- e
}(&l)
}
}