Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
39abf7f0b8 |
+1
-5
@@ -216,11 +216,7 @@ func (b *bridge) handle(w http.ResponseWriter, r *http.Request) {
|
|||||||
case 1: // UP
|
case 1: // UP
|
||||||
tid, exists := b.open[k.Monitor.Name]
|
tid, exists := b.open[k.Monitor.Name]
|
||||||
if !exists {
|
if !exists {
|
||||||
// restarts wipe the in-memory map; search GLPI for an open ticket
|
return
|
||||||
tid, _ = b.glpi.openTicketFor(k.Monitor.Name)
|
|
||||||
if tid == 0 {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
delete(b.open, k.Monitor.Name)
|
delete(b.open, k.Monitor.Name)
|
||||||
go func() {
|
go func() {
|
||||||
|
|||||||
Reference in New Issue
Block a user