mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
SPARK-1374 fixed spark freeze when closing in reversi plugin
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12488 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
committed by
holger.bergunde
parent
a0d9ebe3c7
commit
0f34c4ba2b
@ -105,20 +105,19 @@ public class ReversiPlugin implements Plugin {
|
||||
public void shutdown() {
|
||||
// Remove Reversi button from chat toolbar.
|
||||
removeToolbarButton();
|
||||
|
||||
// Remove IQ listener
|
||||
SparkManager.getConnection().removePacketListener(gameOfferListener);
|
||||
|
||||
// See if there are any pending offers or invitations. If so, cancel
|
||||
// them.
|
||||
for (Iterator<String> i = gameOffers.keySet().iterator(); i.hasNext();) {
|
||||
// String opponentJID = (String)i.next();
|
||||
// TODO: cancel game offer.
|
||||
}
|
||||
for (Iterator<String> i = gameInvitations.keySet().iterator(); i.hasNext();) {
|
||||
// String opponentJID = (String)i.next();
|
||||
// TODO: reject game invitation.
|
||||
}
|
||||
//
|
||||
// // See if there are any pending offers or invitations. If so, cancel
|
||||
// // them.
|
||||
// for (Iterator<String> i = gameOffers.keySet().iterator(); i.hasNext();i.next()) {
|
||||
// System.out.println("gameoffer");
|
||||
//
|
||||
// }
|
||||
// System.out.println(gameInvitations.size());
|
||||
// for (Iterator<String> i = gameInvitations.keySet().iterator(); i.hasNext(); i.next()) {
|
||||
//
|
||||
// }
|
||||
gameOffers.clear();
|
||||
gameInvitations.clear();
|
||||
|
||||
@ -275,7 +274,6 @@ public class ReversiPlugin implements Plugin {
|
||||
request.add(requestPanel, BorderLayout.WEST);
|
||||
|
||||
String opponentJID = ((ChatRoomImpl) room).getJID();
|
||||
System.out.println("sending to "+opponentJID);
|
||||
String opponentName = "[" + opponentJID + "]"; // TODO:
|
||||
// convert
|
||||
// to
|
||||
|
||||
Reference in New Issue
Block a user