mountainpenguin / pyrt

python rtorrent webUI
GNU General Public License v3.0
34 stars 11 forks source link

restarting pyrt #38

Open Bravo13 opened 12 years ago

Bravo13 commented 12 years ago

When trying to restart pyrt by ./pyrt resart got erros in log 1 Traceback (most recent call last): 2 File "./pyrt", line 201, in 3 start(args.noupdate) 4 File "./pyrt", line 103, in start 5 serv.main(c) 6 File "/home/torrent/pyrt/modules/server.py", line 765, in main 7 application._pyrtRT = rtorrent.rtorrent(c.get("rtorrent_socket")) 8 File "/home/torrent/pyrt/modules/rtorrent.py", line 116, in init 9 self.availableMethods = self.conn.system.listMethods() 10 File "/home/torrent/pyrt/modules/xmlrpc2scgi.py", line 184, in call 11 xmlresp = SCGIRequest(self.url).send(xmlreq).replace("","").replace("","") 12 File "/home/torrent/pyrt/modules/xmlrpc2scgi.py", line 111, in send 13 scgiresp = self.__send(self.add_required_scgi_headers(data)) 14 File "/home/torrent/pyrt/modules/xmlrpc2scgi.py", line 101, in __send 15 recvdata = resp = sock.recv(1024) 16 File "/home/torrent/pyrt/modules/server.py", line 705, in shutdown 17 if self._pyrtPID != os.getpid(): 18 AttributeError: 'Main' object has no attribute '_pyrtPID'

mountainpenguin commented 12 years ago

I'll check if I can reproduce this, and report back later