mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-23 13:07:59 +01:00
Removes the track of the number of packets read.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2165 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
cc5802998f
commit
870eb08da3
1 changed files with 0 additions and 14 deletions
|
@ -95,8 +95,6 @@ class PacketReader {
|
||||||
private String connectionID = null;
|
private String connectionID = null;
|
||||||
private Object connectionIDLock = new Object();
|
private Object connectionIDLock = new Object();
|
||||||
|
|
||||||
private int packetsRead = 0;
|
|
||||||
|
|
||||||
protected PacketReader(XMPPConnection connection) {
|
protected PacketReader(XMPPConnection connection) {
|
||||||
this.connection = connection;
|
this.connection = connection;
|
||||||
|
|
||||||
|
@ -171,15 +169,6 @@ class PacketReader {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the number of packets read by the packet reader.
|
|
||||||
*
|
|
||||||
* @return the number of packets read by the packet reader.
|
|
||||||
*/
|
|
||||||
public int getPacketsRead() {
|
|
||||||
return packetsRead;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Starts the packet reader thread and returns once a connection to the server
|
* Starts the packet reader thread and returns once a connection to the server
|
||||||
* has been established. A connection will be attempted for a maximum of five
|
* has been established. A connection will be attempted for a maximum of five
|
||||||
|
@ -342,9 +331,6 @@ class PacketReader {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Increment the number of packets read.
|
|
||||||
packetsRead++;
|
|
||||||
|
|
||||||
// Remove all null values from the collectors list.
|
// Remove all null values from the collectors list.
|
||||||
synchronized (collectors) {
|
synchronized (collectors) {
|
||||||
for (int i=collectors.size()-1; i>=0; i--) {
|
for (int i=collectors.size()-1; i>=0; i--) {
|
||||||
|
|
Loading…
Reference in a new issue