fixed memory leak in do_write function
fixed memory leak in do_write function

happens when we try write bytes and is_connected == false

darrenjs/wampcc,darrenjs/wampcc,darrenjs/wampcc,darrenjs/wampcc,darrenjs/wampcc