File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -397,6 +397,14 @@ Mongos.prototype.lastIsMaster = function() {
397
397
return this . s . mongos . lastIsMaster ( ) ;
398
398
}
399
399
400
+ /**
401
+ * Unref all sockets
402
+ * @method
403
+ */
404
+ Mongos . prototype . unref = function ( ) {
405
+ return this . s . mongos . unref ( ) ;
406
+ }
407
+
400
408
Mongos . prototype . close = function ( forceClosed ) {
401
409
this . s . mongos . destroy ( {
402
410
force : typeof forceClosed == 'boolean' ? forceClosed : false ,
Original file line number Diff line number Diff line change @@ -445,6 +445,14 @@ ReplSet.prototype.lastIsMaster = function() {
445
445
return this . s . replset . lastIsMaster ( ) ;
446
446
}
447
447
448
+ /**
449
+ * Unref all sockets
450
+ * @method
451
+ */
452
+ ReplSet . prototype . unref = function ( ) {
453
+ return this . s . replset . unref ( ) ;
454
+ }
455
+
448
456
ReplSet . prototype . close = function ( forceClosed ) {
449
457
var self = this ;
450
458
// Call destroy on the topology
You can’t perform that action at this time.
0 commit comments