IOClient: fixed checking dnet_add_state result.
Merge pull request #492 from shaitan/master

IOClient: fixed checking dnet_add_state result.