mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed wrong use of flags in pqibin (wtf??)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8431 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d38068c4bc
commit
31492c2f3a
@ -54,7 +54,7 @@ virtual int netstatus() { return 1;}
|
||||
virtual int isactive() { return (buf != NULL);}
|
||||
virtual bool moretoread(uint32_t /* usec */ )
|
||||
{
|
||||
if ((buf) && (bin_flags | BIN_FLAGS_READABLE))
|
||||
if ((buf) && (bin_flags & BIN_FLAGS_READABLE))
|
||||
{
|
||||
if ((size - ftell(buf)) > 0)
|
||||
{
|
||||
@ -67,7 +67,7 @@ virtual bool moretoread(uint32_t /* usec */ )
|
||||
virtual int close();
|
||||
virtual bool cansend(uint32_t /* usec */)
|
||||
{
|
||||
return (bin_flags | BIN_FLAGS_WRITEABLE);
|
||||
return (bin_flags & BIN_FLAGS_WRITEABLE);
|
||||
}
|
||||
virtual bool bandwidthLimited() { return false; }
|
||||
|
||||
@ -161,7 +161,7 @@ virtual int netstatus() { return 1; }
|
||||
virtual int isactive() { return 1; }
|
||||
virtual bool moretoread(uint32_t /* usec */)
|
||||
{
|
||||
if ((buf) && (bin_flags | BIN_FLAGS_READABLE ))
|
||||
if ((buf) && (bin_flags & BIN_FLAGS_READABLE ))
|
||||
{
|
||||
if (readloc < recvsize)
|
||||
{
|
||||
@ -174,7 +174,7 @@ virtual bool moretoread(uint32_t /* usec */)
|
||||
virtual int close();
|
||||
virtual bool cansend(uint32_t /* usec */)
|
||||
{
|
||||
return (bin_flags | BIN_FLAGS_WRITEABLE);
|
||||
return (bin_flags & BIN_FLAGS_WRITEABLE);
|
||||
}
|
||||
virtual bool bandwidthLimited() { return false; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user