Closed nothize closed 7 years ago
Since the errors channel has became nil already, reading from it in the defer block will be stuck forever.
Use another channel for this purpose and set errors to nil after the errors channel is closed immediately.
Since the errors channel has became nil already, reading from it in the defer block will be stuck forever.
Use another channel for this purpose and set errors to nil after the errors channel is closed immediately.