Skip to content
Snippets Groups Projects
Commit a0914a38 authored by Daniel Czerwonk's avatar Daniel Czerwonk
Browse files

tcpConnector does not return error any more, was not checked any way

parent 5ab95fab
No related branches found
No related tags found
No related merge requests found
...@@ -186,7 +186,7 @@ func (fsm *FSM) cease() { ...@@ -186,7 +186,7 @@ func (fsm *FSM) cease() {
fsm.eventCh <- Cease fsm.eventCh <- Cease
} }
func (fsm *FSM) tcpConnector(ctx context.Context) error { func (fsm *FSM) tcpConnector(ctx context.Context) {
for { for {
select { select {
case <-fsm.initiateCon: case <-fsm.initiateCon:
...@@ -207,7 +207,7 @@ func (fsm *FSM) tcpConnector(ctx context.Context) error { ...@@ -207,7 +207,7 @@ func (fsm *FSM) tcpConnector(ctx context.Context) error {
c.Close() c.Close()
continue continue
case <-ctx.Done(): case <-ctx.Done():
return nil return
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment