fix: too many open files caused by agent not being closed (#154)

* fix: too many open files caused by agent not being closed after unsuccessful attempts to start a peer connection (happens when no network available)

* fix: minor refactor to consider signal status
This commit is contained in:
Mikhail Bragin
2021-11-14 19:41:17 +01:00
committed by GitHub
parent 95ef8547f3
commit d08e5efbce
4 changed files with 29 additions and 14 deletions

View File

@ -36,7 +36,7 @@ var _ = Describe("Client", func() {
})
Describe("Exchanging messages", func() {
Context("between streamConnected peers", func() {
Context("between connected peers", func() {
It("should be successful", func() {
var msgReceived sync.WaitGroup