Commit b6523b0d authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Ditching the threads stuff for the moment.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk/src/plugins/gateway@4921 b35dd754-fafc-0310-a699-88a17e54d16e
parent 5529b4a5
...@@ -40,8 +40,8 @@ public class MSNTransport extends BaseTransport { ...@@ -40,8 +40,8 @@ public class MSNTransport extends BaseTransport {
public TransportSession registrationLoggedIn(Registration registration, JID jid, PresenceType presenceType, String verboseStatus) { public TransportSession registrationLoggedIn(Registration registration, JID jid, PresenceType presenceType, String verboseStatus) {
Log.debug("Logging in to MSN gateway."); Log.debug("Logging in to MSN gateway.");
TransportSession session = new MSNSession(registration, jid, this); TransportSession session = new MSNSession(registration, jid, this);
Thread sessionThread = new Thread(session); // Thread sessionThread = new Thread(session);
sessionThread.start(); // sessionThread.start();
((MSNSession)session).logIn(presenceType, verboseStatus); ((MSNSession)session).logIn(presenceType, verboseStatus);
return session; return session;
} }
...@@ -54,7 +54,7 @@ public class MSNTransport extends BaseTransport { ...@@ -54,7 +54,7 @@ public class MSNTransport extends BaseTransport {
public void registrationLoggedOut(TransportSession session) { public void registrationLoggedOut(TransportSession session) {
Log.debug("Logging out of MSN gateway."); Log.debug("Logging out of MSN gateway.");
((MSNSession)session).logOut(); ((MSNSession)session).logOut();
session.sessionDone(); // session.sessionDone();
} }
/** /**
......
...@@ -36,8 +36,8 @@ public class OSCARTransport extends BaseTransport { ...@@ -36,8 +36,8 @@ public class OSCARTransport extends BaseTransport {
*/ */
public TransportSession registrationLoggedIn(Registration registration, JID jid, PresenceType presenceType, String verboseStatus) { public TransportSession registrationLoggedIn(Registration registration, JID jid, PresenceType presenceType, String verboseStatus) {
TransportSession session = new OSCARSession(registration, jid, this); TransportSession session = new OSCARSession(registration, jid, this);
Thread sessionThread = new Thread(session); // Thread sessionThread = new Thread(session);
sessionThread.start(); // sessionThread.start();
((OSCARSession)session).logIn(presenceType, verboseStatus); ((OSCARSession)session).logIn(presenceType, verboseStatus);
return session; return session;
} }
...@@ -49,7 +49,7 @@ public class OSCARTransport extends BaseTransport { ...@@ -49,7 +49,7 @@ public class OSCARTransport extends BaseTransport {
*/ */
public void registrationLoggedOut(TransportSession session) { public void registrationLoggedOut(TransportSession session) {
((OSCARSession)session).logOut(); ((OSCARSession)session).logOut();
session.sessionDone(); // session.sessionDone();
} }
} }
...@@ -40,8 +40,8 @@ public class YahooTransport extends BaseTransport { ...@@ -40,8 +40,8 @@ public class YahooTransport extends BaseTransport {
public TransportSession registrationLoggedIn(Registration registration, JID jid, PresenceType presenceType, String verboseStatus) { public TransportSession registrationLoggedIn(Registration registration, JID jid, PresenceType presenceType, String verboseStatus) {
Log.debug("Logging in to Yahoo gateway."); Log.debug("Logging in to Yahoo gateway.");
TransportSession session = new YahooSession(registration, jid, this); TransportSession session = new YahooSession(registration, jid, this);
Thread sessionThread = new Thread(session); // Thread sessionThread = new Thread(session);
sessionThread.start(); // sessionThread.start();
((YahooSession)session).logIn(presenceType, verboseStatus); ((YahooSession)session).logIn(presenceType, verboseStatus);
return session; return session;
} }
...@@ -54,7 +54,7 @@ public class YahooTransport extends BaseTransport { ...@@ -54,7 +54,7 @@ public class YahooTransport extends BaseTransport {
public void registrationLoggedOut(TransportSession session) { public void registrationLoggedOut(TransportSession session) {
Log.debug("Logging out of Yahoo gateway."); Log.debug("Logging out of Yahoo gateway.");
((YahooSession)session).logOut(); ((YahooSession)session).logOut();
session.sessionDone(); // session.sessionDone();
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment