Skip to content

Commit

Permalink
Remove AR patch stuff; attempting to debug non-connection between MSF…
Browse files Browse the repository at this point in the history
… and Pro
  • Loading branch information
trevrosen authored and mbuck-r7 committed Jan 24, 2012
1 parent 4586112 commit 531c1e6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 66 deletions.
2 changes: 0 additions & 2 deletions lib/msf/core/model.rb
@@ -1,8 +1,6 @@

require 'msf/core/model/serialized_prefs'

require 'msf/core/model/activerecord_patches'

require 'msf/core/model/user'
require 'msf/core/model/api_key'
require 'msf/core/model/macro'
Expand Down
61 changes: 0 additions & 61 deletions lib/msf/core/model/activerecord_patches.rb

This file was deleted.

4 changes: 2 additions & 2 deletions lib/msf/core/model/session.rb
Expand Up @@ -9,8 +9,8 @@ class Session < ActiveRecord::Base
has_many :events, :class_name => "SessionEvent", :order => "created_at"
has_many :routes

named_scope :alive, :conditions => "closed_at IS NULL"
named_scope :dead, :conditions => "closed_at IS NOT NULL"
scope :alive, :conditions => "closed_at IS NULL"
scope :dead, :conditions => "closed_at IS NOT NULL"

serialize :datastore
end
Expand Down
2 changes: 1 addition & 1 deletion lib/msf/core/rpc/v10/service.rb
Expand Up @@ -145,7 +145,7 @@ def process(req)
end
end

::Timeout.timeout(self.dispatcher_timeout) { self.handlers[group].send(mname, *msg) }
::Timeout.timeout(self.dispatcher_timeout) { puts "Group: #{group} Mname: #{mname}";self.handlers[group].send(mname, *msg) }

rescue ::Exception => e
elog("RPC Exception: #{e.class} #{e.to_s} #{e.backtrace} #{msg.inspect} #{req.inspect}")
Expand Down

0 comments on commit 531c1e6

Please sign in to comment.