Skip to content

Commit

Permalink
Fixes _connection reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Step7750 committed Jan 29, 2017
1 parent 46fad97 commit 5b5772d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -64,7 +64,7 @@ var CSGOClient = function CSGOClient(steamUser, steamGC, debug) {
if (!self._gc) {
util.log("GC went missing");
}
else if (!self._gc._connection) {
else if (!self._gc._client || !self._gc._client._connection) {
util.log("GC Connection went missing, exiting");

self._gcReady = false;

0 comments on commit 5b5772d

Please sign in to comment.