We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c062370 commit 45c5650Copy full SHA for 45c5650
1 file changed
lib/index.js
@@ -69,7 +69,9 @@ Modulestore.prototype.detachConnection = function () {
69
};
70
71
Modulestore.prototype.disconnect = function () {
72
- return this.connection.closeAsync();
+ if (this.connection) {
73
+ return this.connection.closeAsync();
74
+ }
75
76
77
Modulestore.prototype.listCourses = function (filter, options) {
0 commit comments