Fixed a getConnection() bug caused by a silent autoboxing
issue left over from when the long -> int client ID conversion was made. Now connection lookups work again. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7152 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
50d55b7e59
commit
50465e37b3
engine/src/networking/com/jme3/network
@ -96,7 +96,7 @@ public interface Server
|
||||
/**
|
||||
* Retrieves a hosted connection by ID.
|
||||
*/
|
||||
public HostedConnection getConnection( long id );
|
||||
public HostedConnection getConnection( int id );
|
||||
|
||||
/**
|
||||
* Retrieves a read-only collection of all currently connected connections.
|
||||
|
@ -168,7 +168,7 @@ public class DefaultServer implements Server
|
||||
}
|
||||
}
|
||||
|
||||
public HostedConnection getConnection( long id )
|
||||
public HostedConnection getConnection( int id )
|
||||
{
|
||||
return connections.get(id);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user