Skip to content

Commit

Permalink
Ups..... Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Daem0n committed Apr 21, 2011
1 parent 018467c commit 6e5b4f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/transmission-client/client.rb
Expand Up @@ -57,7 +57,7 @@ def add_torrent_by_data(data)

#TODO handler for resp['status'] != 'success'
def session
Connection.request('session-get') do |resp|
@connection.request('session-get') do |resp|
if resp == :connection_error
yield :connection_error
else
Expand All @@ -74,7 +74,7 @@ def session_stat
# options = { 'fields' => ['id'], 'ids' => [1,4,6] }
def torrents(options = {})
params = { 'fields' => Transmission::Torrent::ATTRIBUTES}.merge options
Connection.request('torrent-get', params) { |resp|
@connection.request('torrent-get', params) { |resp|
if resp == :connection_error
yield :connection_error
else
Expand Down

0 comments on commit 6e5b4f8

Please sign in to comment.