Bug #670


Slow when closing server or entire program

Added by norsk gutt 4517 days ago. Updated 4493 days ago.

Status:Closed Start:01/04/2012
Priority:Urgent Due date:
Assigned to:avatarMirco Bauer % Done:


Category:Frontend GNOME
Target version:

Found in Version:


Votes: 1 (View)


Sometimes when closing a server, the program takes a long time (10-15 sec?) to close the connection.

Sometimes when closing the entire program (with servers open), the program takes a long time to close.
The windows warning window pops up and tell you that the progra isn't responding (but is eventually closed).

I didn't notice this with the older version, but noticed it on first use with new version (0.8.9-1).
Running Windows 7 x64.

Associated revisions

Revision b69a5f0dc83e226c474444852932877dfc5c26a6
Added by Mirco Bauer 4509 days ago

[Frontend-GNOME] Dispose protocol managers without disconnect on quit (closes: #670)


Updated by Mirco Bauer 4513 days ago

  • Category set to Frontend GNOME
  • Assigned to set to Mirco Bauer
  • Priority changed from Normal to Urgent
  • Target version set to 0.8.10
  • Found in Version set to 0.8.9

Updated by Patrick M 4513 days ago


I encountered the same problem while implementing your IRC Library in to a private project and as far as I can determine it has to do with the Disconnection function in smartirc4net. As the latest release of Smuxi modified the shutdown mechanics, this explains the behavioral change and the absense of the problems in earlier releases.

I have uploaded a debuglog (http://pastebin.com/Y4DzX4Ng) which shows a 40 second timeout after the Disconnect() function is called.

A possible solution might be using the Thread.Abort() function instead of Thread.Stop() in smartirc4net, additionally moving the process to a background-thread also solves said problem.

Updated by Mirco Bauer 4508 days ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Updated by Mirco Bauer 4499 days ago

  • Target version changed from 0.8.10 to

Updated by Mirco Bauer 4493 days ago


This change can be tested with a development build which can be obtained from here: http://www.smuxi.org/documentation/running-from-git/

Also available in: Atom PDF