lib/snapsync/ssh_popen.rb in snapsync-0.4.1 vs lib/snapsync/ssh_popen.rb in snapsync-0.4.2
- old
+ new
@@ -37,10 +37,10 @@
Snapsync.debug "SSHPopen channel opened: #{channel}"
channel.on_data do |ch, data|
read_buffer_in.write(data)
end
- channel.on_extended_data do |ch, data|
+ channel.on_extended_data do |ch, type, data|
data = data.chomp
if data.length > 0
Snapsync.error data
end
end