Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed May 18, 2018
1 parent c618836 commit 1047a80
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dist/hft.js
Original file line number Diff line number Diff line change
@@ -282,6 +282,13 @@ return /******/ (function(modules) { // webpackBootstrap
g_socket.on('error', handleError_.bind(this));
}.bind(this);

this.close = function() {
if (g_socket) {
g_socket.close();
g_socket = undefined;
}
}

var sendCmdLowLevel = function(cmd, data) {
if (!g_socket) {
return;
@@ -1605,6 +1612,14 @@ return /******/ (function(modules) { // webpackBootstrap
return _reloaded;
};

this.close = function() {
if (_socket) {
_socket.close();
_socket = undefined;
_connected = false;
}
};

var connect_ = function() {
_socket = options.socket || new VirtualSocket(options);
_sendQueue = [];

0 comments on commit 1047a80

Please sign in to comment.