Skip to content
This repository was archived by the owner on Aug 25, 2018. It is now read-only.
This repository was archived by the owner on Aug 25, 2018. It is now read-only.

while closing ClosableSSEClient, raise exception #5

@amankumarjain

Description

@amankumarjain

In [15]: data.close()

AttributeError Traceback (most recent call last)
in ()
----> 1 data.close()

~/.virtualenvs/vogo-v2/lib/python3.5/site-packages/pyrebase/pyrebase.py in close(self)
567 time.sleep(0.001)
568 self.sse.running = False
--> 569 self.sse.close()
570 self.thread.join()
571 return self

~/.virtualenvs/vogo-v2/lib/python3.5/site-packages/pyrebase/pyrebase.py in close(self)
527 self.should_connect = False
528 self.retry = 0
--> 529 self.resp.raw._fp.fp._sock.shutdown(socket.SHUT_RDWR)
530 self.resp.raw._fp.fp._sock.close()
531

AttributeError: '_io.BufferedReader' object has no attribute '_sock'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions