Commit c7bfdf36 authored by Fabrice Marsaud's avatar Fabrice Marsaud

Fixed a bug with 0 autocloseTimeout

parent 69414849
......@@ -48,8 +48,12 @@ var SMB = module.exports = function(opt){
// packet concurrency default 20
this.packetConcurrency = opt.packetConcurrency || packetConcurrency;
// close timeout default 60s
this.autoCloseTimeout = opt.autoCloseTimeout || autoCloseTimeout;
// close timeout default 10s
if (opt.autoCloseTimeout !== undefined) {
this.autoCloseTimeout = opt.autoCloseTimeout
} else {
this.autoCloseTimeout = autoCloseTimeout
}
// store authentification
this.domain = opt.domain;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment