tarantool / mqtt

Tarantool MQTT client

Home Page:tarantool.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

You can not call :destroy() without :connect()

vvzvlad opened this issue · comments

Case:

tarantool> mqtt = require 'mqtt'
tarantool> mqtt_object = mqtt.new()

tarantool> mqtt_object:destroy()
---
- error: '...ocuments/Nokia/glue/.rocks/share/tarantool/mqtt/init.lua:472: attempt
    to index field ''fiber'' (a nil value)'
...

tarantool> mqtt_object:connect()
---
- true
- ok
...

tarantool> mqtt_object:destroy()
---
- true
- ok
...

fix on #18 PR

Merged #18. Thanks!