You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got multiple errors when trying to close a Consumer using Cancel:
The c.deliveries channel is closed in the Cancel method, but than the serve method, because of the randomness of select, sometimes tries to write in this channel before running the c.close case. The program crashes because of this.
Here is an extract of my program (sigs is closed when I receive a signal):
Hi,
I got multiple errors when trying to close a Consumer using Cancel:
The c.deliveries channel is closed in the Cancel method, but than the serve method, because of the randomness of select, sometimes tries to write in this channel before running the c.close case. The program crashes because of this.
Here is an extract of my program (sigs is closed when I receive a signal):
When canceling, I get a "panic: send on closed channel" at consumer.go line 92, called from client.go line 188.
Am I using this wrong ?
Maybe moving
from
to
would fix it ?
The text was updated successfully, but these errors were encountered: