Fix closing connection twice

This commit is contained in:
Ben Gotow 2016-07-01 11:36:02 -07:00
parent fd0c4d734c
commit 3ccb7f164b

View file

@ -35,7 +35,9 @@ class SyncWorker {
}
closeConnection() {
this._conn.end();
if (this._conn) {
this._conn.end();
}
this._conn = null
}