When a job completes, remove its handler
This commit is contained in:
parent
d40888817d
commit
3e556edb2d
@ -145,12 +145,10 @@ func (client *Client) processLoop() {
|
||||
case dtWorkData, dtWorkWarning, dtWorkStatus:
|
||||
resp = client.handleResponse(resp.Handle, resp)
|
||||
case dtWorkComplete, dtWorkFail, dtWorkException:
|
||||
resp = client.handleResponse(resp.Handle, resp)
|
||||
if resp != nil {
|
||||
client.handleResponse(resp.Handle, resp)
|
||||
delete(client.respHandler, resp.Handle)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (client *Client) err(e error) {
|
||||
|
Loading…
Reference in New Issue
Block a user