From c49fe7ac9e0ccabba718d6a9875353a869d45c38 Mon Sep 17 00:00:00 2001 From: Danylo Kuvshynov Date: Mon, 3 May 2021 00:20:59 +0300 Subject: [PATCH] Fix commit 418a684ce3c4e393c0694dd80fcbb3ba8ea2bbe9 --- selenosis.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/selenosis.go b/selenosis.go index 82f005b..88edcdd 100644 --- a/selenosis.go +++ b/selenosis.go @@ -80,12 +80,9 @@ func New(logger *log.Logger, client platform.Platform, browsers *config.Browsers ch := client.Watch() go func() { - for event := <-ch: { - - - } + for { select { - case event := <-ch: + case event := <- ch: switch event.PlatformObject.(type) { case *platform.Service: service := event.PlatformObject.(*platform.Service)