Moved all calls to @socket.write into a single private method, protected by a mutex
Moved all calls to @socket.write into a single private method, protected by a mutex


njh/ruby-em-mqtt,keshihoriuchi/ruby-mqtt,tierconnect/appcore2-ruby-mqtt,njh/ruby-mqtt