prestonp / simple-rcon

Simple, painless node RCON client for Source servers
MIT License
14 stars 4 forks source link

Timeout cannot be set to 0 #11

Closed DrSkunk closed 8 years ago

DrSkunk commented 8 years ago

When setting timeout to 0 (meaning no timeout), it reverts to the default 5 seconds timeout. This is due to 0 meaning false on this line : https://github.com/prestonp/simple-rcon/blob/master/lib/rcon.js#L77

prestonp commented 8 years ago

Hey @whitebird v0.3.1 has been published on npm. Thanks!!!