fix a few interfaces

This commit is contained in:
Naoyuki Kanezawa
2014-07-13 15:48:53 +09:00
parent f4177196eb
commit f823857662
2 changed files with 6 additions and 3 deletions

View File

@@ -189,8 +189,10 @@ public class Socket extends Emitter {
/**
* Connects the client.
*
* @return a reference to to this object.
*/
public void open() {
public Socket open() {
EventThread.exec(new Runnable() {
@Override
public void run() {
@@ -206,6 +208,7 @@ public class Socket extends Emitter {
transport.open();
}
});
return this;
}
private Transport createTransport(String name) {