Adjusted timeout to prevent disconnection

Thanks to @aguiraf. This fixes issue #54.